- Timestamp:
- 06/02/2023 02:05:08 AM (18 months ago)
- File:
-
- 1 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
Note: See TracChangeset
for help on using the changeset viewer.