Changeset 13678 for trunk/src/bp-core/bp-core-functions.php
- Timestamp:
- 12/24/2023 04:21:16 AM (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-functions.php
r13648 r13678 776 776 777 777 // Set pages as standard class. 778 $pages = new stdClass; 778 $pages = new stdClass; 779 $switched_to_root_blog = false; 780 781 // Make sure the current blog is set to the root blog. 782 if ( ! bp_is_root_blog() && ! bp_is_multiblog_mode() ) { 783 switch_to_blog( bp_get_root_blog_id() ); 784 $switched_to_root_blog = true; 785 } 779 786 780 787 // Get pages and IDs. … … 816 823 } 817 824 } 825 } 826 827 if ( $switched_to_root_blog ) { 828 restore_current_blog(); 818 829 } 819 830
Note: See TracChangeset
for help on using the changeset viewer.