[wp-trac] Re: [WordPress Trac] #5364: Cron not updated correctly
when deleting a future post
WordPress Trac
wp-trac at lists.automattic.com
Fri Feb 8 16:06:09 GMT 2008
#5364: Cron not updated correctly when deleting a future post
---------------------------------------------+------------------------------
Reporter: develish | Owner: anonymous
Type: defect | Status: new
Priority: low | Milestone: 2.5
Component: General | Version: 2.3.1
Severity: minor | Resolution:
Keywords: cron delete post wp_delete_post |
---------------------------------------------+------------------------------
Comment (by hailin):
After we delete a post, the post ID becomes invalid.
Therefore, even the entry was still in cron, when cron fires up, it tries
to retrieve
an invalid post, it will return right away. logic is in wp_publish_post:
$post = get_post($post_id);
if ( empty($post) )
return;
So while a fix is good, I don't think there is real harm.
--
Ticket URL: <http://trac.wordpress.org/ticket/5364#comment:3>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list