[wp-trac] [WordPress Trac] #33423: Arguments switched in wp_batch_split_terms Cron Job in 4.3

WordPress Trac noreply at wordpress.org
Mon Aug 24 21:36:42 UTC 2015


#33423: Arguments switched in wp_batch_split_terms Cron Job in 4.3
--------------------------+-----------------------
 Reporter:  mechter       |       Owner:  dd32
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  4.3.1
Component:  Taxonomy      |     Version:  4.3
 Severity:  normal        |  Resolution:
 Keywords:  fixed-major   |     Focuses:
--------------------------+-----------------------

Comment (by Otto42):

 I agree, calling wp_unschedule_event repeatedly for thousands of entries
 takes a long time and may also not finish within a 30 second window.

 Attached a patch 33423.diff which basically performs the same operation in
 one pass, with one query. Essentially just copies the operation from
 wp_unschedule_event into the upgrade function directly, then uses
 _set_cron_array once only.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33423#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list