Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#50513 closed enhancement (fixed)

Allow customization of the update comment type batch size

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

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 4 years ago.

Download all attachments as: .zip

Change History (5)

@dchymko
4 years ago

#1 @SergeyBiryukov
4 years ago

  • Milestone changed from Awaiting Review to 5.5

#2 @SergeyBiryukov
4 years ago

  • Resolution set to fixed
  • Status changed from assigned to 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
4 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
4 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.