Changeset 11513 for trunk/src/bp-core/bp-core-cache.php
- Timestamp:
- 03/16/2017 03:49:08 PM (9 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-core/bp-core-cache.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-cache.php
r11447 r11513 74 74 * @param int $post_id ID of the page that was saved. 75 75 */ 76 function bp_core_clear_directory_pages_cache_page_edit( $post_id ) { 77 if ( ! bp_is_root_blog() ) { 78 return; 79 } 76 function bp_core_clear_directory_pages_cache_page_edit( $post_id = 0 ) { 80 77 81 78 // Bail if BP is not defined here. … … 84 81 } 85 82 83 // Bail if not on the root blog 84 if ( ! bp_is_root_blog() ) { 85 return; 86 } 87 86 88 $page_ids = bp_core_get_directory_page_ids( 'all' ); 87 89 88 if ( ! in_array( $post_id, (array) $page_ids ) ) { 90 // Bail if post ID is not a directory page 91 if ( ! in_array( $post_id, $page_ids ) ) { 89 92 return; 90 93 }
Note: See TracChangeset
for help on using the changeset viewer.