Add xmlrpc_publish_post action.

git-svn-id: http://svn.automattic.com/wordpress/trunk@4147 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-08-31 05:21:27 +00:00
parent 47e7b92b11
commit a66eed3695
1 changed files with 2 additions and 0 deletions

View File

@ -664,6 +664,8 @@ function wp_insert_post($postarr = array()) {
if ($post_status == 'publish' && $post_type == 'post') {
do_action('publish_post', $post_ID);
if ( defined('XMLRPC_REQUEST') )
do_action('xmlrpc_publish_post', $post_ID);
if ( !defined('WP_IMPORTING') ) {
if ( $post_pingback )