WordPress.org

Make WordPress Core

Ticket #6698: 6698.diff

File 6698.diff, 1.2 KB (added by Denis-de-Bernardy, 9 years ago)
  • wp-includes/default-filters.php

     
    195195add_action( 'plugins_loaded', 'wp_maybe_load_widgets', 0 );
    196196add_action( 'shutdown', 'wp_ob_end_flush_all', 1);
    197197add_action( 'pre_post_update', 'wp_save_post_revision' );
    198 add_action('publish_post', '_publish_post_hook', 5, 1);
    199198add_action('future_post', '_future_post_hook', 5, 2);
    200199add_action('future_page', '_future_post_hook', 5, 2);
    201200add_action('save_post', '_save_post_hook', 5, 2);
  • wp-includes/post.php

     
    32393239                if ( '' == get_the_guid($post->ID) )
    32403240                        $wpdb->update( $wpdb->posts, array( 'guid' => get_permalink( $post->ID ) ), array( 'ID' => $post->ID ) );
    32413241                do_action('private_to_published', $post->ID);  // Deprecated, use private_to_publish
     3242                _publish_post_hook($post->ID);
    32423243        }
    32433244
    32443245        // Always clears the hook in case the post status bounced from future to draft.