- Timestamp:
- 06/02/2023 02:05:08 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-members/classes/class-bp-members-component.php
r13492 r13495 152 152 // Actions - Random member handler. 153 153 if ( isset( $_GET['random-member'] ) ) { 154 require $this->path . 'bp-members/actions/random.php';154 require_once $this->path . 'bp-members/actions/random.php'; 155 155 } 156 156 157 157 // Screens - Directory. 158 158 if ( bp_is_members_directory() ) { 159 require $this->path . 'bp-members/screens/directory.php';159 require_once $this->path . 'bp-members/screens/directory.php'; 160 160 } 161 161 } … … 163 163 // Members - User main nav screen. 164 164 if ( bp_is_user() ) { 165 require $this->path . 'bp-members/screens/profile.php';165 require_once $this->path . 'bp-members/screens/profile.php'; 166 166 167 167 // Action - Delete avatar. 168 168 if ( is_user_logged_in()&& bp_is_user_change_avatar() && bp_is_action_variable( 'delete-avatar', 0 ) ) { 169 require $this->path . 'bp-members/actions/delete-avatar.php';169 require_once $this->path . 'bp-members/actions/delete-avatar.php'; 170 170 } 171 171 … … 174 174 in_array( bp_current_action(), array( 'change-avatar', 'change-cover-image' ), true ) 175 175 ) { 176 require $this->path . 'bp-members/screens/' . bp_current_action() . '.php';176 require_once $this->path . 'bp-members/screens/' . bp_current_action() . '.php'; 177 177 } 178 178 } … … 186 186 if ( bp_is_register_page() || bp_is_activation_page() ) { 187 187 if ( bp_is_register_page() ) { 188 require $this->path . 'bp-members/screens/register.php';188 require_once $this->path . 'bp-members/screens/register.php'; 189 189 } else { 190 require $this->path . 'bp-members/screens/activate.php';190 require_once $this->path . 'bp-members/screens/activate.php'; 191 191 } 192 192 … … 199 199 // Actions. 200 200 if ( isset( $_POST['members_invitations'] ) ) { 201 require $this->path . 'bp-members/actions/invitations-bulk-manage.php';201 require_once $this->path . 'bp-members/actions/invitations-bulk-manage.php'; 202 202 } 203 203 204 204 // Screens. 205 require $this->path . 'bp-members/screens/invitations.php';205 require_once $this->path . 'bp-members/screens/invitations.php'; 206 206 } 207 207 }
Note: See TracChangeset
for help on using the changeset viewer.