Changeset 11748
- Timestamp:
- 11/29/2017 12:29:00 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-members/classes/class-bp-members-theme-compat.php
r10521 r11748 42 42 } 43 43 44 // User page. 45 if ( bp_is_user() ) { 46 47 // If we're on a single activity permalink page, we shouldn't use the members 48 // template, so stop here! 49 if ( bp_is_active( 'activity' ) && bp_is_single_activity() ) { 50 return; 51 } 52 53 /** 54 * Fires if looking at Members user page when needing theme compat. 55 * 56 * @since 1.5.0 57 */ 58 do_action( 'bp_members_screen_display_profile' ); 59 60 add_filter( 'bp_get_buddypress_template', array( $this, 'single_template_hierarchy' ) ); 61 add_action( 'bp_template_include_reset_dummy_post_data', array( $this, 'single_dummy_post' ) ); 62 add_filter( 'bp_replace_the_content', array( $this, 'single_dummy_content' ) ); 63 44 64 // Members Directory. 45 if ( ! bp_current_action() && ! bp_current_item() ) {65 } elseif ( ! bp_current_action() && ! bp_current_item() ) { 46 66 bp_update_is_directory( true, 'members' ); 47 67 … … 56 76 add_action( 'bp_template_include_reset_dummy_post_data', array( $this, 'directory_dummy_post' ) ); 57 77 add_filter( 'bp_replace_the_content', array( $this, 'directory_content' ) ); 58 59 // User page.60 } elseif ( bp_is_user() ) {61 62 // If we're on a single activity permalink page, we shouldn't use the members63 // template, so stop here!64 if ( bp_is_active( 'activity' ) && bp_is_single_activity() ) {65 return;66 }67 68 /**69 * Fires if looking at Members user page when needing theme compat.70 *71 * @since 1.5.072 */73 do_action( 'bp_members_screen_display_profile' );74 75 add_filter( 'bp_get_buddypress_template', array( $this, 'single_template_hierarchy' ) );76 add_action( 'bp_template_include_reset_dummy_post_data', array( $this, 'single_dummy_post' ) );77 add_filter( 'bp_replace_the_content', array( $this, 'single_dummy_content' ) );78 79 78 } 80 79 }
Note: See TracChangeset
for help on using the changeset viewer.