Add xmlrpc_publish_post action.
git-svn-id: https://develop.svn.wordpress.org/trunk@4147 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
4a2c36a88e
commit
5d226699f8
|
@ -664,6 +664,8 @@ function wp_insert_post($postarr = array()) {
|
||||||
|
|
||||||
if ($post_status == 'publish' && $post_type == 'post') {
|
if ($post_status == 'publish' && $post_type == 'post') {
|
||||||
do_action('publish_post', $post_ID);
|
do_action('publish_post', $post_ID);
|
||||||
|
if ( defined('XMLRPC_REQUEST') )
|
||||||
|
do_action('xmlrpc_publish_post', $post_ID);
|
||||||
|
|
||||||
if ( !defined('WP_IMPORTING') ) {
|
if ( !defined('WP_IMPORTING') ) {
|
||||||
if ( $post_pingback )
|
if ( $post_pingback )
|
||||||
|
|
Loading…
Reference in New Issue