Changeset 13471 for trunk/src/bp-core/classes/class-bp-component.php
- Timestamp:
- 05/07/2023 11:36:50 AM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/classes/class-bp-component.php
r13468 r13471 600 600 } 601 601 602 // Set directory page states.603 add_filter( 'bp_admin_display_directory_states', array( $this, 'admin_directory_states' ), 10, 2 );604 605 602 /** 606 603 * Fires at the end of the setup_actions method inside BP_Component. … … 1278 1275 $query->is_front_page = false; 1279 1276 $query->is_page = false; 1280 $query->is_single = true;1281 1277 $query->is_archive = false; 1282 1278 $query->is_tax = false; 1279 1280 if ( ! is_embed() ) { 1281 $query->is_single = true; 1282 } 1283 1283 } 1284 1284 … … 1390 1390 * 1391 1391 * @since 10.0.0 1392 * @deprecated 12.0.0 1392 1393 * 1393 1394 * @param string[] $states An array of post display states. … … 1396 1397 */ 1397 1398 public function admin_directory_states( $states = array(), $post = null ) { 1398 if ( $this->has_directory ) { 1399 /** 1400 * Filter here to edit the component's directory states. 1401 * 1402 * This is a dynamic hook that is based on the component string ID. 1403 * 1404 * @since 10.0.0 1405 * 1406 * @param string[] $states An array of post display states. 1407 * @param WP_Post $post The current post object. 1408 */ 1409 return apply_filters( 'bp_' . $this->id . '_admin_directory_states', $states, $post ); 1410 } 1411 1399 _deprecated_function( __METHOD__, '12.0.0' ); 1412 1400 return $states; 1413 1401 }
Note: See TracChangeset
for help on using the changeset viewer.