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

WordPress Trac wp-trac at lists.automattic.com
Fri Apr 20 21:55:41 GMT 2007


#4111: xmlrpc_publish_post Action Hook Not Working
-----------------------------------------+----------------------------------
 Reporter:  sweetdeal                    |        Owner:  rob1n
     Type:  defect                       |       Status:  new  
 Priority:  low                          |    Milestone:  2.3  
Component:  XML-RPC                      |      Version:  2.1.3
 Severity:  normal                       |   Resolution:       
 Keywords:  has-patch reporter-feedback  |  
-----------------------------------------+----------------------------------
Comment (by sweetdeal):

 Sorry it's taken me a little while to get back to this.

 I'm away from my main computer now, so can't post exact code, but I can
 explain what I was looking to do with the plugin.

 Once an entry was published via XML-RPC, the plugin automatically used the
 $post_ID, then grabbed the content from that post (using
 wp_get_single_post) and filtered the content for specific terms. If any of
 those specific terms were found in the post, it would then replace the
 terms with safe terms and then update the content (using wp_update_post).

 Although it worked fine with publish_post, it refused to work with
 xmlrpc_publish_post. As I mentioned above, swapping the lines of code
 above allowed it to work with *both* publish_post and xmlrpc_publish_post.

 When I get back to my computer, I'll be happy to cut/paste some code from
 the plugin.

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


More information about the wp-trac mailing list