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

WordPress Trac wp-trac at lists.automattic.com
Sat Apr 7 21:13:07 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          |    Keywords:  xmlrpc, xml-rpc
----------------------------+-----------------------------------------------
 While trying to write a plugin, I noticed that the xmlrpc_publish_post
 hook wasn't working properly when posting via XML-RPC. I tried the plugin
 with the publish_post action hook and it worked perfectly fine.

 Though I wasn't able to track down the specific cause of the problem, I
 did manage to find a solution by swapping a few lines in the wp-
 includes/post.php file. Basically, I moved the xmlrpc_publish_post hook
 before publish_post and everything works a treat.

 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>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list