- Timestamp:
- 09/27/2024 09:11:27 PM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-notifications/classes/class-bp-notifications-component.php
r13503 r14026 146 146 */ 147 147 public function register_nav( $main_nav = array(), $sub_nav = array() ) { 148 $slug = bp_get_notifications_slug();148 $slug = bp_get_notifications_slug(); 149 149 150 150 // Add 'Notifications' to the main navigation. … … 248 248 ); 249 249 } else { 250 $title = _x( 'Notifications', 'My Account Notification', 'buddypress' );251 $unread = _x( 'Unread', 'My Account Notification sub nav', 'buddypress' );250 $title = _x( 'Notifications', 'My Account Notification', 'buddypress' ); 251 $unread = _x( 'Unread', 'My Account Notification sub nav', 'buddypress' ); 252 252 } 253 253 … … 297 297 } else { 298 298 $bp->bp_options_title = bp_get_displayed_user_fullname(); 299 $bp->bp_options_avatar = bp_core_fetch_avatar( array( 300 'item_id' => bp_displayed_user_id(), 301 'type' => 'thumb', 302 /* translators: %s: member name */ 303 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_get_displayed_user_fullname() ) 304 ) ); 299 $bp->bp_options_avatar = bp_core_fetch_avatar( 300 array( 301 'item_id' => bp_displayed_user_id(), 302 'type' => 'thumb', 303 /* translators: %s: member name */ 304 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_get_displayed_user_fullname() ), 305 ) 306 ); 305 307 } 306 308 } … … 317 319 318 320 // Global groups. 319 wp_cache_add_global_groups( array( 320 'bp_notifications', 321 'notification_meta', 322 'bp_notifications_unread_count', 323 'bp_notifications_grouped_notifications', 324 ) ); 321 wp_cache_add_global_groups( 322 array( 323 'bp_notifications', 324 'notification_meta', 325 'bp_notifications_unread_count', 326 'bp_notifications_grouped_notifications', 327 ) 328 ); 325 329 326 330 parent::setup_cache_groups(); … … 336 340 */ 337 341 public function rest_api_init( $controllers = array() ) { 338 parent::rest_api_init( array( 'BP_ REST_Notifications_Endpoint' ) );342 parent::rest_api_init( array( 'BP_Notifications_REST_Controller' ) ); 339 343 } 340 344 }
Note: See TracChangeset
for help on using the changeset viewer.