[wp-trac] [WordPress Trac] #39340: Scheduled Posts are being missed (problem with wp-cron.php?)
WordPress Trac
noreply at wordpress.org
Tue Mar 24 15:39:50 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):
I am investigating this problem, as wp-cron.php doesn't fire any log
information I added a `error_log(print_r($crons, true));` at line 149
before the delete of the transient to track at every call what crons are
found.
As I can see the crons are found but not executed:
{{{
[1585036816] => Array
(
[publish_future_post] => Array
(
[799cb85576dde4649c55321c2ce6e65b] => Array
(
[schedule] =>
[args] => Array
(
[0] => 246700
)
)
)
)
}}}
So I am wondering if
https://github.com/WordPress/WordPress/blob/7004afe4f4bac1fd17a142051832bdf6be8e6fcf
/wp-includes/post.php#L4293 it is working.
As I can see this function `check_and_publish_future_post` doesn't have
any test and the last changes to that function are from a lot of years
ago.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39340#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list