WordPress.org

Make WordPress Core

Opened 3 months ago

Closed 3 months ago

Last modified 3 months ago

#50513 closed enhancement (fixed)

Allow customization of the update comment type batch size

Reported by: dchymko Owned by: 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 3 months ago.

Download all attachments as: .zip

Change History (5)

@dchymko
3 months ago

#1 @SergeyBiryukov
3 months ago

  • Milestone changed from Awaiting Review to 5.5

#2 @SergeyBiryukov
3 months 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
3 months 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
3 months 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.