Changeset 9505
- Timestamp:
- 02/17/2015 11:56:13 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/src/bp-core/bp-core-functions.php
r9479 r9505 626 626 * Remove the entry from bp_pages when the corresponding WP page is deleted. 627 627 * 628 * Bails early on multisite installations when not viewing the root site. 629 * @link https://buddypress.trac.wordpress.org/ticket/6226 630 * 628 631 * @since BuddyPress (2.2.0) 629 632 * … … 631 634 */ 632 635 function bp_core_on_directory_page_delete( $post_id ) { 633 $page_ids = bp_core_get_directory_page_ids(); 636 637 // Stop if we are not on the main BP root blog 638 if ( ! bp_is_root_blog() ) { 639 return; 640 } 641 642 $page_ids = bp_core_get_directory_page_ids(); 634 643 $component_name = array_search( $post_id, $page_ids ); 635 644
Note: See TracChangeset
for help on using the changeset viewer.