Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/14/2021 08:52:00 AM (3 years ago)
Author:
imath
Message:

Introduce a new BP_Component property for block globals

This new property will help us to manage Widget Block occurrences globals and use a single filter on 'widget_block_dynamic_classname' to make sure Widget Blocks will include Legacy Widget classnames and inherit their styles.

This commit also makes sure WordPress is >= 5.0 before using the has_block function.

See #8515
Fixes #8516

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-template.php

    r12997 r12998  
    38733873    );
    38743874
    3875     if ( $block_name ) {
     3875    if ( $block_name && bp_is_running_wp( '5.0.0', '>=' ) ) {
    38763876        $widget_blocks = get_option( 'widget_block', array() );
    38773877        $sidebars      = wp_get_sidebars_widgets();
Note: See TracChangeset for help on using the changeset viewer.