Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#50513 closed enhancement (fixed)

Allow customization of the update comment type batch size

Reported by: dchymko Owned by: darylchymko
Priority: normal Milestone: 5.5
Component: Comments Version:
Severity: normal Keywords:
Cc: Focuses:

Description

Functionality was added in #49236 to update comment types in batches of 100. This is a good default value, but some users may want to modify this batch size. For example, some hosts may want to have a batch size similar in size to other processing they do via cron.

Attachments (1)

50513.patch​ (906 bytes ) - added by dchymko 6 years ago.

Download all attachments as: .zip

Change History (5)

@dchymko
6 years ago

#1 @SergeyBiryukov
6 years ago

  • Milestone Awaiting Review → 5.5

#2 @SergeyBiryukov
6 years ago

  • Resolution → fixed
  • Status assigned → closed

In 48225:

Comments: Introduce wp_update_comment_type_batch_size filter for the comment batch size in _wp_batch_update_comment_type().

Follow-up to [47597].

Props dchymko.
Fixes #50513. See #49236.

#3 follow-up: @SergeyBiryukov
6 years ago

In 48227:

Comments: Correct $wpdb->prepare() usage in _wp_batch_update_comment_type().

Follow-up to [47597], [48225].

See #50513, #49236.

#4 in reply to: ↑ 3 @dchymko
6 years ago

Replying to SergeyBiryukov:

In 48227:

Comments: Correct $wpdb->prepare() usage in _wp_batch_update_comment_type().

Follow-up to [47597], [48225].

See #50513, #49236.

Thanks for changing that over, that was an improvement on my radar for today but you beat me to it!

Note: See TracTickets for help on using tickets.