[wp-trac] [WordPress Trac] #37542: Taxonomies in cron jobs cause problems

WordPress Trac noreply at wordpress.org
Fri Dec 30 21:53:03 UTC 2016


#37542: Taxonomies in cron jobs cause problems
-------------------------------+------------------------------
 Reporter:  blatan             |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Taxonomy           |     Version:  4.5.3
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------

Comment (by jrfoell):

 This is actually an issue if using the "Alternative Cron"

 `define( 'ALTERNATE_WP_CRON', true );`

 I attached an example plugin to show a use case. You'll have to set the
 define in `wp-config.php` to see it in action. Changing the taxonomy
 registration init hook to priority 9 will alleviate this problem, but it
 would be better to instead change the alternate cron to use a much higher
 init priority so any start-up code has a chance to execute.

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


More information about the wp-trac mailing list