Ticket #6698: 6698.diff
| File 6698.diff, 1.2 KB (added by , 17 years ago) |
|---|
-
wp-includes/default-filters.php
195 195 add_action( 'plugins_loaded', 'wp_maybe_load_widgets', 0 ); 196 196 add_action( 'shutdown', 'wp_ob_end_flush_all', 1); 197 197 add_action( 'pre_post_update', 'wp_save_post_revision' ); 198 add_action('publish_post', '_publish_post_hook', 5, 1);199 198 add_action('future_post', '_future_post_hook', 5, 2); 200 199 add_action('future_page', '_future_post_hook', 5, 2); 201 200 add_action('save_post', '_save_post_hook', 5, 2); -
wp-includes/post.php
3239 3239 if ( '' == get_the_guid($post->ID) ) 3240 3240 $wpdb->update( $wpdb->posts, array( 'guid' => get_permalink( $post->ID ) ), array( 'ID' => $post->ID ) ); 3241 3241 do_action('private_to_published', $post->ID); // Deprecated, use private_to_publish 3242 _publish_post_hook($post->ID); 3242 3243 } 3243 3244 3244 3245 // Always clears the hook in case the post status bounced from future to draft.