WordPress.org

Make WordPress Core

Changeset 23387


Ignore:
Timestamp:
02/05/2013 03:45:37 PM (9 years ago)
Author:
SergeyBiryukov
Message:

Correct the documentation for _publish_post_hook(). Remove unused global declaration. props roulandf. fixes #23376.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post.php

    r23353 r23387  
    48494849 * @since 2.3.0
    48504850 * @access private
    4851  * @uses $wpdb
    4852  * @uses XMLRPC_REQUEST constant.
    4853  * @uses do_action() Calls 'xmlprc_publish_post' on post ID if XMLRPC_REQUEST is defined.
     4851 * @uses XMLRPC_REQUEST and WP_IMPORTING constants.
     4852 * @uses do_action() Calls 'xmlrpc_publish_post' on post ID if XMLRPC_REQUEST is defined.
    48544853 *
    48554854 * @param int $post_id The ID in the database table of the post being published
    48564855 */
    48574856function _publish_post_hook($post_id) {
    4858     global $wpdb;
    4859 
    48604857    if ( defined('XMLRPC_REQUEST') )
    48614858        do_action('xmlrpc_publish_post', $post_id);
Note: See TracChangeset for help on using the changeset viewer.