- Timestamp:
- 06/02/2023 02:05:08 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-settings/classes/class-bp-settings-component.php
r13450 r13495 73 73 if ( is_user_logged_in() ) { 74 74 if ( ! bp_current_action() || bp_is_current_action( 'general' ) ) { 75 require $this->path . 'bp-settings/actions/general.php';75 require_once $this->path . 'bp-settings/actions/general.php'; 76 76 77 77 // Specific to post requests. 78 78 } elseif ( bp_is_post_request() && in_array( bp_current_action(), $actions, true ) ) { 79 require $this->path . 'bp-settings/actions/' . bp_current_action() . '.php';79 require_once $this->path . 'bp-settings/actions/' . bp_current_action() . '.php'; 80 80 } 81 81 } … … 83 83 // Screens - User profile integration. 84 84 if ( bp_is_user() ) { 85 require $this->path . 'bp-settings/screens/general.php';85 require_once $this->path . 'bp-settings/screens/general.php'; 86 86 87 87 // Sub-nav items. 88 88 if ( in_array( bp_current_action(), $actions, true ) ) { 89 require $this->path . 'bp-settings/screens/' . bp_current_action() . '.php';89 require_once $this->path . 'bp-settings/screens/' . bp_current_action() . '.php'; 90 90 } 91 91 }
Note: See TracChangeset
for help on using the changeset viewer.