Changeset 13495
- Timestamp:
- 06/02/2023 02:05:08 AM (16 months ago)
- Location:
- trunk/src
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/classes/class-bp-activity-component.php
r13492 r13495 122 122 in_array( bp_current_action(), array( 'delete', 'spam', 'post', 'reply', 'favorite', 'unfavorite' ), true ) 123 123 ) { 124 require $this->path . 'bp-activity/actions/' . bp_current_action() . '.php';124 require_once $this->path . 'bp-activity/actions/' . bp_current_action() . '.php'; 125 125 } 126 126 127 127 // RSS feeds. 128 128 if ( bp_is_current_action( 'feed' ) || bp_is_action_variable( 'feed', 0 ) ) { 129 require $this->path . 'bp-activity/actions/feeds.php';129 require_once $this->path . 'bp-activity/actions/feeds.php'; 130 130 } 131 131 132 132 // Screens - Directory. 133 133 if ( bp_is_activity_directory() ) { 134 require $this->path . 'bp-activity/screens/directory.php';134 require_once $this->path . 'bp-activity/screens/directory.php'; 135 135 } 136 136 137 137 // Screens - User main nav. 138 138 if ( bp_is_user() ) { 139 require $this->path . 'bp-activity/screens/just-me.php';139 require_once $this->path . 'bp-activity/screens/just-me.php'; 140 140 } 141 141 … … 163 163 164 164 if ( bp_is_user() && isset( $filenames[ $slug ] ) ) { 165 require $this->path . 'bp-activity/screens/' . $filenames[ $slug ] . '.php';165 require_once $this->path . 'bp-activity/screens/' . $filenames[ $slug ] . '.php'; 166 166 } 167 167 168 168 // Screens - Single permalink. 169 169 if ( bp_is_current_action( 'p' ) || is_numeric( bp_current_action() ) ) { 170 require $this->path . 'bp-activity/screens/permalink.php';170 require_once $this->path . 'bp-activity/screens/permalink.php'; 171 171 } 172 172 -
trunk/src/bp-blogs/classes/class-bp-blogs-component.php
r13492 r13495 177 177 // Actions. 178 178 if ( isset( $_GET['random-blog'] ) ) { 179 require $this->path . 'bp-blogs/actions/random.php';179 require_once $this->path . 'bp-blogs/actions/random.php'; 180 180 } 181 181 182 182 // Screens. 183 183 if ( bp_is_user() ) { 184 require $this->path . 'bp-blogs/screens/my-blogs.php';184 require_once $this->path . 'bp-blogs/screens/my-blogs.php'; 185 185 } else { 186 186 if ( bp_is_blogs_directory() ) { 187 require $this->path . 'bp-blogs/screens/directory.php';187 require_once $this->path . 'bp-blogs/screens/directory.php'; 188 188 } 189 189 190 190 if ( is_user_logged_in() && bp_is_current_action( 'create' ) ) { 191 require $this->path . 'bp-blogs/screens/create.php';191 require_once $this->path . 'bp-blogs/screens/create.php'; 192 192 } 193 193 -
trunk/src/bp-friends/classes/class-bp-friends-component.php
r13481 r13495 86 86 in_array( bp_current_action(), array( 'add-friend', 'remove-friend' ), true ) 87 87 ) { 88 require $this->path . 'bp-friends/actions/' . bp_current_action() . '.php';88 require_once $this->path . 'bp-friends/actions/' . bp_current_action() . '.php'; 89 89 } 90 90 91 91 // User nav. 92 require $this->path . 'bp-friends/screens/my-friends.php';92 require_once $this->path . 'bp-friends/screens/my-friends.php'; 93 93 if ( is_user_logged_in() && bp_is_user_friend_requests() ) { 94 require $this->path . 'bp-friends/screens/requests.php';94 require_once $this->path . 'bp-friends/screens/requests.php'; 95 95 } 96 96 } -
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 } -
trunk/src/bp-messages/classes/class-bp-messages-component.php
r13481 r13495 98 98 in_array( bp_current_action(), array( 'compose', 'notices', 'view' ), true ) 99 99 ) { 100 require $this->path . 'bp-messages/actions/' . bp_current_action() . '.php';100 require_once $this->path . 'bp-messages/actions/' . bp_current_action() . '.php'; 101 101 } 102 102 … … 105 105 in_array( bp_action_variable( 0 ), array( 'delete', 'read', 'unread', 'bulk-manage', 'bulk-delete', 'exit' ), true ) 106 106 ) { 107 require $this->path . 'bp-messages/actions/' . bp_action_variable( 0 ) . '.php';107 require_once $this->path . 'bp-messages/actions/' . bp_action_variable( 0 ) . '.php'; 108 108 } 109 109 … … 112 112 // Single action. 113 113 if ( in_array( bp_current_action(), array( 'star', 'unstar' ), true ) ) { 114 require $this->path . 'bp-messages/actions/star.php';114 require_once $this->path . 'bp-messages/actions/star.php'; 115 115 } 116 116 117 117 // Bulk-manage. 118 118 if ( bp_is_action_variable( 'bulk-manage' ) ) { 119 require $this->path . 'bp-messages/actions/bulk-manage-star.php';119 require_once $this->path . 'bp-messages/actions/bulk-manage-star.php'; 120 120 } 121 121 } … … 123 123 // Screens - User profile integration. 124 124 if ( bp_is_user() ) { 125 require $this->path . 'bp-messages/screens/inbox.php';125 require_once $this->path . 'bp-messages/screens/inbox.php'; 126 126 127 127 /* … … 131 131 */ 132 132 if ( bp_is_user_messages() && in_array( bp_current_action(), array( 'sentbox', 'compose', 'notices', 'view' ), true ) ) { 133 require $this->path . 'bp-messages/screens/' . bp_current_action() . '.php';133 require_once $this->path . 'bp-messages/screens/' . bp_current_action() . '.php'; 134 134 } 135 135 136 136 // Nav item - Starred. 137 137 if ( bp_is_active( $this->id, 'star' ) && bp_is_current_action( bp_get_messages_starred_slug() ) ) { 138 require $this->path . 'bp-messages/screens/starred.php';138 require_once $this->path . 'bp-messages/screens/starred.php'; 139 139 } 140 140 } -
trunk/src/bp-notifications/classes/class-bp-notifications-component.php
r13450 r13495 78 78 // Actions. 79 79 if ( bp_is_post_request() ) { 80 require $this->path . 'bp-notifications/actions/bulk-manage.php';80 require_once $this->path . 'bp-notifications/actions/bulk-manage.php'; 81 81 } elseif ( bp_is_get_request() ) { 82 require $this->path . 'bp-notifications/actions/delete.php';82 require_once $this->path . 'bp-notifications/actions/delete.php'; 83 83 } 84 84 85 85 // Screens. 86 require $this->path . 'bp-notifications/screens/unread.php';86 require_once $this->path . 'bp-notifications/screens/unread.php'; 87 87 if ( bp_is_current_action( 'read' ) ) { 88 require $this->path . 'bp-notifications/screens/read.php';88 require_once $this->path . 'bp-notifications/screens/read.php'; 89 89 } 90 90 } -
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 } -
trunk/src/bp-xprofile/classes/class-bp-xprofile-component.php
r13450 r13495 112 112 // User nav. 113 113 if ( bp_is_profile_component() ) { 114 require $this->path . 'bp-xprofile/screens/public.php';114 require_once $this->path . 'bp-xprofile/screens/public.php'; 115 115 116 116 // Sub-nav items. 117 117 if ( is_user_logged_in() && 'edit' === bp_current_action() ) { 118 require $this->path . 'bp-xprofile/screens/edit.php';118 require_once $this->path . 'bp-xprofile/screens/edit.php'; 119 119 } 120 120 } … … 122 122 // Settings. 123 123 if ( is_user_logged_in() && bp_is_user_settings_profile() ) { 124 require $this->path . 'bp-xprofile/screens/settings-profile.php';124 require_once $this->path . 'bp-xprofile/screens/settings-profile.php'; 125 125 } 126 126 }
Note: See TracChangeset
for help on using the changeset viewer.