- Timestamp:
- 05/07/2023 11:36:50 AM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/classes/class-bp-activity-component.php
r13464 r13471 578 578 parent::blocks_init( $blocks ); 579 579 } 580 581 /**582 * Add the Activity directory state.583 *584 * @since 10.0.0585 *586 * @param array $states Optional. See BP_Component::admin_directory_states() for description.587 * @param WP_Post $post Optional. See BP_Component::admin_directory_states() for description.588 * @return array See BP_Component::admin_directory_states() for description.589 */590 public function admin_directory_states( $states = array(), $post = null ) {591 $bp = buddypress();592 593 if ( isset( $bp->pages->activity->id ) && (int) $bp->pages->activity->id === (int) $post->ID ) {594 $states['page_for_activity_directory'] = _x( 'BP Activity Page', 'page label', 'buddypress' );595 }596 597 return parent::admin_directory_states( $states, $post );598 }599 580 }
Note: See TracChangeset
for help on using the changeset viewer.