From 163f0a476939e75f4d7958dac7786690bc3ff5ea Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 5 Feb 2013 15:45:37 +0000 Subject: [PATCH] Correct the documentation for _publish_post_hook(). Remove unused global declaration. props roulandf. fixes #23376. git-svn-id: https://develop.svn.wordpress.org/trunk@23387 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/post.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index a9c2acb4d6..716447f2ae 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -4848,15 +4848,12 @@ function _future_post_hook( $deprecated = '', $post ) { * * @since 2.3.0 * @access private - * @uses $wpdb - * @uses XMLRPC_REQUEST constant. - * @uses do_action() Calls 'xmlprc_publish_post' on post ID if XMLRPC_REQUEST is defined. + * @uses XMLRPC_REQUEST and WP_IMPORTING constants. + * @uses do_action() Calls 'xmlrpc_publish_post' on post ID if XMLRPC_REQUEST is defined. * * @param int $post_id The ID in the database table of the post being published */ function _publish_post_hook($post_id) { - global $wpdb; - if ( defined('XMLRPC_REQUEST') ) do_action('xmlrpc_publish_post', $post_id);