- Timestamp:
- 06/02/2023 02:05:08 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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 }
Note: See TracChangeset
for help on using the changeset viewer.