Changeset 13720 for trunk/tests/phpunit/testcases/core/functions.php
- Timestamp:
- 01/31/2024 08:09:06 PM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/core/functions.php
r13705 r13720 834 834 835 835 $bp = buddypress(); 836 $reset_current_site = isset( $GLOBALS['current_site'] ) ? $GLOBALS['current_site'] : null; 836 837 $reset_bp_pages = $bp->pages; 837 838 $reset_bp_active_components = $bp->active_components; … … 842 843 ) ); 843 844 845 if ( defined( 'WP_HOME' ) ) { 846 $GLOBALS['current_site']->domain = get_site( $b )->domain; 847 } 848 844 849 $bp->active_components['newcomponent'] = 1; 845 850 add_filter( 'bp_core_get_directory_page_default_titles', array( $this, 'add_newcomponent_page_title' ) ); … … 851 856 852 857 $new_component_page_id = $bp_pages['newcomponent']; 858 853 859 $this->assertNotSame( 'newcomponent', get_post_field( 'post_name', $new_component_page_id ), 'The component slug should not conflict with subsite name.' ); 854 860 … … 858 864 $bp->pages = $reset_bp_pages; 859 865 $bp->active_components = $reset_bp_active_components; 866 867 if ( defined( 'WP_HOME' ) ) { 868 $GLOBALS['current_site'] = $reset_current_site; 869 } 860 870 } 861 871
Note: See TracChangeset
for help on using the changeset viewer.