Changeset 12944 for trunk/src/bp-core/bp-core-blocks.php
- Timestamp:
- 05/09/2021 04:45:15 PM (5 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-core/bp-core-blocks.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-blocks.php
r12745 r12944 68 68 return $editor_settings; 69 69 } 70 add_filter( 'block_editor_settings', 'bp_blocks_editor_settings' ); 70 71 /** 72 * Select the right `block_editor_settings` filter according to WP version. 73 * 74 * @since 8.0.0 75 */ 76 function bp_block_init_editor_settings_filter() { 77 if ( function_exists( 'get_block_editor_settings' ) ) { 78 add_filter( 'block_editor_settings_all', 'bp_blocks_editor_settings' ); 79 } else { 80 add_filter( 'block_editor_settings', 'bp_blocks_editor_settings' ); 81 } 82 } 83 add_action( 'bp_init', 'bp_block_init_editor_settings_filter' ); 71 84 72 85 /**
Note: See TracChangeset
for help on using the changeset viewer.