- Timestamp:
- 09/27/2024 09:11:27 PM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/classes/class-bp-activity-component.php
r13689 r14026 33 33 array( 34 34 'adminbar_myaccount_order' => 10, 35 'search_query_arg' => 'activity_search',36 'features' => array( 'embeds' )35 'search_query_arg' => 'activity_search', 36 'features' => array( 'embeds' ), 37 37 ) 38 38 ); … … 152 152 153 153 if ( bp_is_active( 'friends' ) ) { 154 $filenames[ bp_get_friends_slug()] = 'friends';154 $filenames[ bp_get_friends_slug() ] = 'friends'; 155 155 } 156 156 157 157 if ( bp_is_active( 'groups' ) ) { 158 $filenames[ bp_get_groups_slug()] = 'groups';158 $filenames[ bp_get_groups_slug() ] = 'groups'; 159 159 } 160 160 … … 210 210 // Fetch the default directory title. 211 211 $default_directory_titles = bp_core_get_directory_page_default_titles(); 212 $default_directory_title = $default_directory_titles[ $this->id];212 $default_directory_title = $default_directory_titles[ $this->id ]; 213 213 214 214 // All globals for activity component. … … 231 231 'bp/latest-activities' => array( 232 232 'widget_classnames' => array( 'wp-block-bp-latest-activities', 'buddypress' ), 233 ) 233 ), 234 234 ), 235 235 ); … … 258 258 'screen_function' => 'bp_activity_screen_my_activity', 259 259 'default_subnav_slug' => 'just-me', 260 'item_css_id' => $this->id 260 'item_css_id' => $this->id, 261 261 ); 262 262 … … 267 267 'parent_slug' => $slug, 268 268 'screen_function' => 'bp_activity_screen_my_activity', 269 'position' => 10 269 'position' => 10, 270 270 ); 271 271 … … 312 312 'screen_function' => 'bp_activity_screen_groups', 313 313 'position' => 50, 314 'item_css_id' => 'activity-groups' 314 'item_css_id' => 'activity-groups', 315 315 ); 316 316 } … … 409 409 'title' => _x( 'Groups', 'My Account Activity sub nav', 'buddypress' ), 410 410 'href' => bp_loggedin_user_url( bp_members_get_path_chunks( array( $activity_slug, bp_get_groups_slug() ) ) ), 411 'position' => 50 411 'position' => 50, 412 412 ); 413 413 } … … 421 421 * 422 422 * @since 1.5.0 423 *424 423 */ 425 424 public function setup_title() { … … 432 431 $bp->bp_options_title = _x( 'My Activity', 'Page and <title>', 'buddypress' ); 433 432 } else { 434 $bp->bp_options_avatar = bp_core_fetch_avatar( array( 435 'item_id' => bp_displayed_user_id(), 436 'type' => 'thumb', 437 'alt' => sprintf( 433 $bp->bp_options_avatar = bp_core_fetch_avatar( 434 array( 435 'item_id' => bp_displayed_user_id(), 436 'type' => 'thumb', 437 'alt' => sprintf( 438 438 /* translators: %s: member name */ 439 __( 'Profile picture of %s', 'buddypress' ), 440 bp_get_displayed_user_fullname() 441 ), 442 ) ); 439 __( 'Profile picture of %s', 'buddypress' ), 440 bp_get_displayed_user_fullname() 441 ), 442 ) 443 ); 443 444 $bp->bp_options_title = bp_get_displayed_user_fullname(); 444 445 } … … 456 457 457 458 // Global groups. 458 wp_cache_add_global_groups( array( 459 'bp_activity', 460 'bp_activity_comments', 461 'activity_meta' 462 ) ); 459 wp_cache_add_global_groups( 460 array( 461 'bp_activity', 462 'bp_activity_comments', 463 'activity_meta', 464 ) 465 ); 463 466 464 467 parent::setup_cache_groups(); … … 525 528 */ 526 529 public function rest_api_init( $controllers = array() ) { 527 parent::rest_api_init( array( 'BP_ REST_Activity_Endpoint' ) );530 parent::rest_api_init( array( 'BP_Activity_REST_Controller' ) ); 528 531 } 529 532 … … 548 551 $blocks['bp/embed-activity'] = array( 549 552 'metadata' => trailingslashit( buddypress()->plugin_dir ) . 'bp-activity/blocks/embed-activity', 550 551 553 ); 552 554 }
Note: See TracChangeset
for help on using the changeset viewer.