Changeset 13471 for trunk/src/bp-blogs/classes/class-bp-blogs-component.php
- Timestamp:
- 05/07/2023 11:36:50 AM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-blogs/classes/class-bp-blogs-component.php
r13464 r13471 528 528 parent::blocks_init( $blocks ); 529 529 } 530 531 /**532 * Add the Sites directory states.533 *534 * @since 10.0.0535 *536 * @param array $states Optional. See BP_Component::admin_directory_states() for description.537 * @param WP_Post $post Optional. See BP_Component::admin_directory_states() for description.538 * @return array See BP_Component::admin_directory_states() for description.539 */540 public function admin_directory_states( $states = array(), $post = null ) {541 $bp = buddypress();542 543 if ( isset( $bp->pages->blogs->id ) && (int) $bp->pages->blogs->id === (int) $post->ID ) {544 $states['page_for_sites_directory'] = _x( 'BP Sites Page', 'page label', 'buddypress' );545 }546 547 return parent::admin_directory_states( $states, $post );548 }549 530 }
Note: See TracChangeset
for help on using the changeset viewer.