- Timestamp:
- 09/27/2024 09:11:27 PM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-friends/classes/class-bp-friends-component.php
r13503 r14026 140 140 'bp/friends' => array( 141 141 'widget_classnames' => array( 'widget_bp_core_friends_widget', 'buddypress' ), 142 ) 142 ), 143 143 ), 144 144 ); … … 160 160 */ 161 161 public function register_nav( $main_nav = array(), $sub_nav = array() ) { 162 $slug = bp_get_friends_slug();162 $slug = bp_get_friends_slug(); 163 163 164 164 $main_nav = array( … … 306 306 $bp->bp_options_title = __( 'Friendships', 'buddypress' ); 307 307 } else { 308 $bp->bp_options_avatar = bp_core_fetch_avatar( array( 309 'item_id' => bp_displayed_user_id(), 310 'type' => 'thumb', 311 'alt' => sprintf( 308 $bp->bp_options_avatar = bp_core_fetch_avatar( 309 array( 310 'item_id' => bp_displayed_user_id(), 311 'type' => 'thumb', 312 'alt' => sprintf( 312 313 /* translators: %s: member name */ 313 __( 'Profile picture of %s', 'buddypress' ), 314 bp_get_displayed_user_fullname() 315 ), 316 ) ); 317 $bp->bp_options_title = bp_get_displayed_user_fullname(); 314 __( 'Profile picture of %s', 'buddypress' ), 315 bp_get_displayed_user_fullname() 316 ), 317 ) 318 ); 319 $bp->bp_options_title = bp_get_displayed_user_fullname(); 318 320 } 319 321 } … … 330 332 331 333 // Global groups. 332 wp_cache_add_global_groups( array( 333 'bp_friends_requests', 334 'bp_friends_friendships', // Individual friendship objects are cached here by ID. 335 'bp_friends_friendships_for_user' // All friendship IDs for a single user. 336 ) ); 334 wp_cache_add_global_groups( 335 array( 336 'bp_friends_requests', 337 'bp_friends_friendships', // Individual friendship objects are cached here by ID. 338 'bp_friends_friendships_for_user', // All friendship IDs for a single user. 339 ) 340 ); 337 341 338 342 parent::setup_cache_groups(); … … 348 352 */ 349 353 public function rest_api_init( $controllers = array() ) { 350 parent::rest_api_init( array( 'BP_ REST_Friends_Endpoint' ) );354 parent::rest_api_init( array( 'BP_Friends_REST_Controller' ) ); 351 355 } 352 356
Note: See TracChangeset
for help on using the changeset viewer.