Changeset 13718 for trunk/src/bp-core/bp-core-blocks.php
- Timestamp:
- 01/29/2024 06:31:34 PM (3 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
r13676 r13718 156 156 return $editor_settings; 157 157 } 158 159 /** 160 * Select the right `block_editor_settings` filter according to WP version. 161 * 162 * @since 8.0.0 163 */ 164 function bp_block_init_editor_settings_filter() { 165 if ( function_exists( 'get_block_editor_settings' ) ) { 166 add_filter( 'block_editor_settings_all', 'bp_blocks_editor_settings' ); 167 } else { 168 add_filter( 'block_editor_settings', 'bp_blocks_editor_settings' ); 169 } 170 } 171 add_action( 'bp_init', 'bp_block_init_editor_settings_filter' ); 158 add_filter( 'block_editor_settings_all', 'bp_blocks_editor_settings' ); 172 159 173 160 /**
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)