Changeset 5438 for trunk/src/includes/core/cache.php
- Timestamp:
- 07/09/2014 11:30:05 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/src/includes/core/cache.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/core/cache.php
r4863 r5438 69 69 70 70 // Bail if post ID is not a bbPress post type 71 if ( empty( $post_id ) || ! bbp_is_custom_post_type( $post_id ) ) 71 if ( empty( $post_id ) || ! bbp_is_custom_post_type( $post_id ) ) { 72 72 return; 73 } 73 74 74 75 // Store the $post_id … … 92 93 93 94 // Bail if this post is not the current bbPress post 94 if ( empty( $post_id ) || ( $this->updating_post !== $post_id ) ) 95 if ( empty( $post_id ) || ( $this->updating_post !== $post_id ) ) { 95 96 return; 97 } 96 98 97 99 // Stash the current cache invalidation value in a variable, so we can … … 136 138 // Bail if no post 137 139 $_post = get_post( $_post ); 138 if ( empty( $_post ) ) 140 if ( empty( $_post ) ) { 139 141 return; 142 } 140 143 141 144 wp_cache_delete( $_post->ID, 'posts' );
Note: See TracChangeset
for help on using the changeset viewer.