WordPress.org

Make WordPress Core

Ticket #23376: post.diff

File post.diff, 726 bytes (added by roulandf, 5 years ago)
  • post.php

     
    48334833 *
    48344834 * @since 2.3.0
    48354835 * @access private
    4836  * @uses $wpdb
    4837  * @uses XMLRPC_REQUEST constant.
    4838  * @uses do_action() Calls 'xmlprc_publish_post' on post ID if XMLRPC_REQUEST is defined.
     4836 * @uses XMLRPC_REQUEST and WP_IMPORTING constants.
     4837 * @uses do_action() Calls 'xmlrpc_publish_post' on post ID if XMLRPC_REQUEST is defined.
    48394838 *
    48404839 * @param int $post_id The ID in the database table of the post being published
    48414840 */
    48424841function _publish_post_hook($post_id) {
    4843         global $wpdb;
    4844 
    48454842        if ( defined('XMLRPC_REQUEST') )
    48464843                do_action('xmlrpc_publish_post', $post_id);
    48474844