[wp-trac] [WordPress Trac] #19015: do_action fails on nested calls
WordPress Trac
wp-trac at lists.automattic.com
Thu Oct 20 15:52:59 UTC 2011
#19015: do_action fails on nested calls
--------------------------+------------------------------
Reporter: mrubiolvn | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Plugins | Version: 3.2.1
Severity: normal | Resolution:
Keywords: |
--------------------------+------------------------------
Comment (by SergeyBiryukov):
A proper code would probably be:
{{{
function callme_back($postId) {
remove_action('save_post','callme_back');
wp_insert_post(get_post(21431/*whatever, just to trigger save_post
again*/));
}
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19015#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list