- Timestamp:
- 10/09/2021 06:10:51 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/classes/class-bp-groups-component.php
r13103 r13123 1135 1135 ); 1136 1136 } 1137 1138 /** 1139 * Add the Groups directory states. 1140 * 1141 * @since 10.0.0 1142 * 1143 * @param array $states Optional. See BP_Component::admin_directory_states() for description. 1144 * @param WP_Post $post Optional. See BP_Component::admin_directory_states() for description. 1145 * @return array See BP_Component::admin_directory_states() for description. 1146 */ 1147 public function admin_directory_states( $states = array(), $post = null ) { 1148 $bp = buddypress(); 1149 1150 if ( isset( $bp->pages->groups->id ) && (int) $bp->pages->groups->id === (int) $post->ID ) { 1151 $states['page_for_groups_directory'] = _x( 'BP Groups Page', 'page label', 'buddypress' ); 1152 } 1153 1154 return parent::admin_directory_states( $states, $post ); 1155 } 1137 1156 }
Note: See TracChangeset
for help on using the changeset viewer.