[wp-trac] Re: [WordPress Trac] #4111: xmlrpc_publish_post Action Hook Not Working

WordPress Trac wp-trac at lists.automattic.com
Sat Apr 7 21:20:56 GMT 2007


#4111: xmlrpc_publish_post Action Hook Not Working
-----------------------------+----------------------------------------------
 Reporter:  sweetdeal        |        Owner:  anonymous
     Type:  defect           |       Status:  new      
 Priority:  low              |    Milestone:  2.1.4    
Component:  Administration   |      Version:  2.1.3    
 Severity:  normal           |   Resolution:           
 Keywords:  xmlrpc, xml-rpc  |  
-----------------------------+----------------------------------------------
Comment (by sweetdeal):

 Specifically:

 ~ Line 678-680
 Changed

 {{{
 do_action('publish_post', $post_ID);
 if ( defined('XMLRPC_REQUEST') )
 do_action('xmlrpc_publish_post', $post_ID);
 }}}

 To

 {{{
 if ( defined('XMLRPC_REQUEST') )
 do_action('xmlrpc_publish_post', $post_ID);

 do_action('publish_post', $post_ID);
 }}}

 Figured this may be helpful for other plugin authors who are working on
 plugins that will make use of the xmlrpc_publish_post action hook.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4111#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list