Changeset 13763
- Timestamp:
- 03/09/2024 10:59:45 AM (2 years ago)
- Location:
- trunk/src/bp-members/screens
- Files:
-
- 6 edited
-
activate.php (modified) (3 diffs)
-
change-avatar.php (modified) (4 diffs)
-
change-cover-image.php (modified) (2 diffs)
-
invitations.php (modified) (2 diffs)
-
profile.php (modified) (1 diff)
-
register.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-members/screens/activate.php
r13436 r13763 12 12 * 13 13 * @since 1.1.0 14 * 15 * @return void 14 16 */ 15 17 function bp_core_screen_activation() { … … 17 19 // Bail if not viewing the activation page. 18 20 if ( ! bp_is_current_component( 'activate' ) ) { 19 return false;21 return; 20 22 } 21 23 … … 53 55 * @since 1.1.1 54 56 * 55 * @param string $value Path to theMember activation template to load.57 * @param string[] $value Path to the list of Member activation template to load. 56 58 */ 57 bp_core_load_template( apply_filters( 'bp_core_template_activate', array( 'activate', 'registration/activate' ) ) ); 59 $templates = apply_filters( 'bp_core_template_activate', array( 'activate', 'registration/activate' ) ); 60 $templates[] = 'members/activate'; 61 62 bp_core_load_template( $templates ); 58 63 } 59 64 add_action( 'bp_screens', 'bp_core_screen_activation' ); -
trunk/src/bp-members/screens/change-avatar.php
r13443 r13763 12 12 * 13 13 * @since 6.0.0 14 * 15 * @return void 14 16 */ 15 17 function bp_members_screen_change_avatar() { 16 18 // Bail if not the correct screen. 17 19 if ( ! bp_is_my_profile() && ! bp_current_user_can( 'bp_moderate' ) ) { 18 return false;20 return; 19 21 } 20 22 … … 33 35 $bp->avatar_admin->step = 'upload-image'; 34 36 35 if ( ! empty( $_FILES ) ) {37 if ( ! empty( $_FILES ) ) { 36 38 37 39 // Check the nonce. … … 100 102 do_action( 'bp_members_screen_change_avatar' ); 101 103 102 /** This filter is documented in wp-includes/deprecated.php */ 103 $template = apply_filters_deprecated( 'xprofile_template_change_avatar', array( 'members/single/home' ), '6.0.0', 'bp_members_template_change_avatar' ); 104 $templates = array( 105 /** This filter is documented in wp-includes/deprecated.php */ 106 apply_filters_deprecated( 'xprofile_template_change_avatar', array( 'members/single/home' ), '6.0.0', 'bp_members_template_change_avatar' ), 107 'members/single/index' 108 ); 104 109 105 110 /** … … 108 113 * @since 6.0.0 109 114 * 110 * @param string $template Path to the Member templateto load.115 * @param string[] $templates Path to the Member templates to load. 111 116 */ 112 bp_core_load_template( apply_filters( 'bp_members_template_change_avatar', $template ) );117 bp_core_load_template( apply_filters( 'bp_members_template_change_avatar', $templates ) ); 113 118 } -
trunk/src/bp-members/screens/change-cover-image.php
r12558 r13763 29 29 do_action( 'bp_members_screen_change_cover_image' ); 30 30 31 /** This filter is documented in wp-includes/deprecated.php */ 32 $template = apply_filters_deprecated( 'xprofile_template_cover_image', array( 'members/single/home' ), '6.0.0', 'bp_members_template_change_cover_image' ); 31 $templates = array( 32 /** This filter is documented in wp-includes/deprecated.php */ 33 apply_filters_deprecated( 'xprofile_template_cover_image', array( 'members/single/home' ), '6.0.0', 'bp_members_template_change_cover_image' ), 34 'members/single/index', 35 ); 33 36 34 37 /** … … 37 40 * @since 6.0.0 38 41 * 39 * @param string $template Path to the Member templateto load.42 * @param string[] $templates Path to the list of Member templates to load. 40 43 */ 41 bp_core_load_template( apply_filters( 'bp_members_template_change_cover_image', $template ) );44 bp_core_load_template( apply_filters( 'bp_members_template_change_cover_image', $templates ) ); 42 45 } -
trunk/src/bp-members/screens/invitations.php
r13108 r13763 52 52 do_action( 'members_screen_send_invites' ); 53 53 54 /** 55 * Filters the template used to display the send membership invitations page. 56 * 57 * @since 8.0.0 58 * 59 * @param string $template Path to the send membership invitations template to load. 60 */ 61 bp_core_load_template( apply_filters( 'members_template_send_invites', 'members/single/invitations' ) ); 54 $templates = array( 55 /** 56 * Filters the template used to display the send membership invitations page. 57 * 58 * @since 8.0.0 59 * 60 * @param string $template Path to the send membership invitations template to load. 61 */ 62 apply_filters( 'members_template_send_invites', 'members/single/home' ), 63 'members/single/index', 64 ); 65 66 bp_core_load_template( $templates ); 62 67 } 63 68 … … 113 118 do_action( 'members_screen_list_sent_invites' ); 114 119 115 /** 116 * Filters the template used to display the send membership invitations page. 117 * 118 * @since 8.0.0 119 * 120 * @param string $template Path to the send membership invitations template to load. 121 */ 122 bp_core_load_template( apply_filters( 'members_template_list_sent_invites', 'members/single/invitations' ) ); 120 $templates = array( 121 /** 122 * Filters the template used to display the send membership invitations page. 123 * 124 * @since 8.0.0 125 * 126 * @param string $template Path to the send membership invitations template to load. 127 */ 128 apply_filters( 'members_template_list_sent_invites', 'members/single/home' ), 129 'members/single/index', 130 ); 131 132 bp_core_load_template( $templates ); 123 133 } -
trunk/src/bp-members/screens/profile.php
r12556 r13763 22 22 do_action( 'bp_members_screen_display_profile' ); 23 23 24 /** 25 * Filters the template to load for the Member profile page screen. 26 * 27 * @since 1.5.0 28 * 29 * @param string $template Path to the Member template to load. 30 */ 31 bp_core_load_template( apply_filters( 'bp_members_screen_display_profile', 'members/single/home' ) ); 24 $templates = array( 25 /** 26 * Filters the template to load for the Member profile page screen. 27 * 28 * @since 1.5.0 29 * 30 * @param string $template Path to the Member template to load. 31 */ 32 apply_filters( 'bp_members_screen_display_profile', 'members/single/home' ), 33 'members/single/index', 34 ); 35 36 bp_core_load_template( $templates ); 32 37 } -
trunk/src/bp-members/screens/register.php
r13436 r13763 293 293 * @since 1.5.0 294 294 * 295 * @param string $value Path to the Member registration templateto load.295 * @param string[] $value Path to the list of Member registration templates to load. 296 296 */ 297 bp_core_load_template( apply_filters( 'bp_core_template_register', array( 'register', 'registration/register' ) ) ); 297 $templates = apply_filters( 'bp_core_template_register', array( 'register', 'registration/register' ) ); 298 $templates[] = 'members/register'; 299 300 bp_core_load_template( $templates ); 298 301 } 299 302 add_action( 'bp_screens', 'bp_core_screen_signup' );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)