Changeset 13417 for trunk/src/bp-core/bp-core-widgets.php
- Timestamp:
- 02/10/2023 04:01:49 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-widgets.php
r13228 r13417 20 20 function bp_core_retain_legacy_widgets() { 21 21 $theme_supports = current_theme_supports( 'widgets-block-editor' ); 22 $wp_supports = bp_is_running_wp( '5.8.0' );23 22 24 23 /** This filter is documented in wp-includes/widgets.php */ 25 $block_widgets_enabled = $theme_supports && apply_filters( 'use_widgets_block_editor', $wp_supports);24 $block_widgets_enabled = $theme_supports && apply_filters( 'use_widgets_block_editor', true ); 26 25 27 26 $retain_legacy_widgets = true;
Note: See TracChangeset
for help on using the changeset viewer.