WordPress.org

Make WordPress Core

Opened 23 hours ago

Closed 12 hours ago

Last modified 7 hours 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 23 hours ago.

Download all attachments as: .zip

Change History (5)

@dchymko
23 hours ago

#1 @SergeyBiryukov
14 hours ago

  • Milestone changed from Awaiting Review to 5.5

#2 @SergeyBiryukov
12 hours 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
11 hours 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
7 hours 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.