[wp-trac] [WordPress Trac] #39340: Scheduled Posts are being missed (problem with wp-cron.php?)

WordPress Trac noreply at wordpress.org
Fri Apr 3 14:36:06 UTC 2020


#39340: Scheduled Posts are being missed (problem with wp-cron.php?)
----------------------------+------------------------------
 Reporter:  remarkablemike  |       Owner:  (none)
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Cron API        |     Version:  4.6.1
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:
----------------------------+------------------------------

Comment (by Mte90):

 In my testing, seems that `check_and_publish_future_post` is not invoked
 on some posts also if should do it.
 As this hook is instantiated only on upgrade
 https://github.com/WordPress/WordPress/search?q=publish_future_post&unscoped_q=publish_future_post
 and the event is removed on deleting the post
 https://github.com/WordPress/WordPress/blob/7004afe4f4bac1fd17a142051832bdf6be8e6fcf
 /wp-includes/post.php#L3059

 Maybe that hook should be fired more often? It can explain why they appear
 as post but no cron is executed for them.

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


More information about the wp-trac mailing list