Skip to content

Commit

Permalink
Correct the documentation for _publish_post_hook(). Remove unused glo…
Browse files Browse the repository at this point in the history
…bal declaration. props roulandf. fixes #23376.

git-svn-id: http://core.svn.wordpress.org/trunk@23387 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
SergeyBiryukov committed Feb 5, 2013
1 parent b1adfbb commit c569c15
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions wp-includes/post.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit c569c15

Please sign in to comment.