Changeset 9846 for trunk/src/bp-messages/bp-messages-loader.php
- Timestamp:
- 05/06/2015 11:42:53 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-messages/bp-messages-loader.php
r9825 r9846 40 40 buddypress()->plugin_dir, 41 41 array( 42 'adminbar_myaccount_order' => 50 42 'adminbar_myaccount_order' => 50, 43 'features' => array( 'star' ) 43 44 ) 44 45 ); … … 68 69 ); 69 70 71 // Conditional includes 72 if ( bp_is_active( $this->id, 'star' ) ) { 73 $includes[] = 'star'; 74 } 75 70 76 parent::includes( $includes ); 71 77 } … … 167 173 ); 168 174 175 if ( bp_is_active( $this->id, 'star' ) ) { 176 $sub_nav[] = array( 177 'name' => __( 'Starred', 'buddypress' ), 178 'slug' => bp_get_messages_starred_slug(), 179 'parent_url' => $messages_link, 180 'parent_slug' => $this->slug, 181 'screen_function' => 'bp_messages_star_screen', 182 'position' => 11, 183 'user_has_access' => bp_core_can_edit_settings() 184 ); 185 } 186 169 187 $sub_nav[] = array( 170 188 'name' => __( 'Sent', 'buddypress' ), … … 243 261 'href' => trailingslashit( $messages_link . 'inbox' ) 244 262 ); 263 264 // Starred 265 if ( bp_is_active( $this->id, 'star' ) ) { 266 $wp_admin_nav[] = array( 267 'parent' => 'my-account-' . $this->id, 268 'id' => 'my-account-' . $this->id . '-starred', 269 'title' => __( 'Starred', 'buddypress' ), 270 'href' => trailingslashit( $messages_link . bp_get_messages_starred_slug() ) 271 ); 272 } 245 273 246 274 // Sent Messages
Note: See TracChangeset
for help on using the changeset viewer.