Changeset 13718 for trunk/src/bp-core/admin/bp-core-admin-functions.php
- Timestamp:
- 01/29/2024 06:31:34 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/admin/bp-core-admin-functions.php
r13660 r13718 1550 1550 ); 1551 1551 } 1552 1553 /** 1554 * Select the right `block_categories` filter according to WP version. 1555 * 1556 * @since 8.0.0 1557 * @since 12.0.0 This category is left for third party plugin but not used anymmore. 1558 * 1559 * @todo deprecate. 1560 */ 1561 function bp_block_init_category_filter() { 1562 if ( function_exists( 'get_default_block_categories' ) ) { 1563 add_filter( 'block_categories_all', 'bp_block_category', 1, 2 ); 1564 } else { 1565 add_filter( 'block_categories', 'bp_block_category', 1, 2 ); 1566 } 1567 } 1568 add_action( 'bp_init', 'bp_block_init_category_filter' ); 1552 add_filter( 'block_categories_all', 'bp_block_category', 1, 2 ); 1569 1553 1570 1554 /**
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)