Changeset 21943
- Timestamp:
- 09/21/2012 06:52:15 PM (12 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/default-filters.php
r21537 r21943 250 250 add_action( 'pre_post_update', 'wp_save_post_revision' ); 251 251 add_action( 'publish_post', '_publish_post_hook', 5, 1 ); 252 add_action( 'save_post', '_save_post_hook', 5, 2 );253 252 add_action( 'transition_post_status', '_transition_post_status', 5, 3 ); 254 253 add_action( 'transition_post_status', '_update_term_count_on_transition_post_status', 10, 3 ); -
trunk/wp-includes/deprecated.php
r21911 r21943 3245 3245 return true; 3246 3246 } 3247 3248 /** 3249 * Callback formerly fired on the save_post hook. No longer needed. 3250 * 3251 * @since 2.3.0 3252 * @deprecated 3.5.0 3253 */ 3254 function _save_post_hook() {} -
trunk/wp-includes/post.php
r21942 r21943 2766 2766 $current_guid = get_post_field( 'guid', $post_ID ); 2767 2767 2768 clean_post_cache( $post_ID );2769 2770 2768 // Set GUID 2771 2769 if ( !$update && '' == $current_guid ) 2772 2770 $wpdb->update( $wpdb->posts, array( 'guid' => get_permalink( $post_ID ) ), $where ); 2771 2772 clean_post_cache( $post_ID ); 2773 2773 2774 2774 $post = get_post($post_ID); … … 4686 4686 4687 4687 /** 4688 * Hook used to prevent page/post cache from staying dirty when a post is saved.4689 *4690 * @since 2.3.04691 * @access private4692 *4693 * @param int $post_id The ID in the database table for the $post4694 * @param object $post Object type containing the post information4695 */4696 function _save_post_hook( $post_id, $post ) {4697 clean_post_cache( $post );4698 }4699 4700 /**4701 4688 * Determines which fields of posts are to be saved in revisions. 4702 4689 *
Note: See TracChangeset
for help on using the changeset viewer.