- Timestamp:
- 10/09/2021 06:10:51 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/classes/class-bp-activity-component.php
r13093 r13123 547 547 parent::blocks_init( $blocks ); 548 548 } 549 550 /** 551 * Add the Activity directory state. 552 * 553 * @since 10.0.0 554 * 555 * @param array $states Optional. See BP_Component::admin_directory_states() for description. 556 * @param WP_Post $post Optional. See BP_Component::admin_directory_states() for description. 557 * @return array See BP_Component::admin_directory_states() for description. 558 */ 559 public function admin_directory_states( $states = array(), $post = null ) { 560 $bp = buddypress(); 561 562 if ( isset( $bp->pages->activity->id ) && (int) $bp->pages->activity->id === (int) $post->ID ) { 563 $states['page_for_activity_directory'] = _x( 'BP Activity Page', 'page label', 'buddypress' ); 564 } 565 566 return parent::admin_directory_states( $states, $post ); 567 } 549 568 }
Note: See TracChangeset
for help on using the changeset viewer.