- Timestamp:
- 05/07/2023 11:36:50 AM (23 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/classes/class-bp-groups-component.php
r13468 r13471 1260 1260 ); 1261 1261 } 1262 1263 /**1264 * Add the Groups directory states.1265 *1266 * @since 10.0.01267 *1268 * @param array $states Optional. See BP_Component::admin_directory_states() for description.1269 * @param WP_Post $post Optional. See BP_Component::admin_directory_states() for description.1270 * @return array See BP_Component::admin_directory_states() for description.1271 */1272 public function admin_directory_states( $states = array(), $post = null ) {1273 $bp = buddypress();1274 1275 if ( isset( $bp->pages->groups->id ) && (int) $bp->pages->groups->id === (int) $post->ID ) {1276 $states['page_for_groups_directory'] = _x( 'BP Groups Page', 'page label', 'buddypress' );1277 }1278 1279 return parent::admin_directory_states( $states, $post );1280 }1281 1262 }
Note: See TracChangeset
for help on using the changeset viewer.