Changeset 21943 for trunk/wp-includes/post.php
- Timestamp:
- 09/21/2012 06:52:15 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.