[wp-trac] [WordPress Trac] #23700: publish_future_post action not working

WordPress Trac noreply at wordpress.org
Thu Mar 7 16:25:11 UTC 2013


#23700: publish_future_post action not working
-------------------------------+------------------------------
 Reporter:  jkoon              |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  General            |     Version:  3.4.2
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+------------------------------
Changes (by helen):

 * keywords:   => reporter-feedback


Comment:

 What happens if you use the `$post_id` function arg noted in the reference
 instead of doing `global $post`? So:

 {{{
 function test_action ( $post_id ) {
         update_post_meta( $post_id, 'hook_fired', 'true' );
 }
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23700#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list