Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/25/2020 10:12:18 AM (6 years ago)
Author:
imath
Message:

Add a function to check the current installation support BP Blocks

As BuddyPress supports WordPress 4.8 and 4.9, we need to make sure the current installation is using WordPress >= 5.0.0 before loading the BuddyPress blocks.

See #8048

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/classes/class-bp-component.php

    r12578 r12581  
    468468
    469469        // Register BP Blocks.
    470         if ( bp_rest_api_is_available() ) {
     470        if ( bp_support_blocks() ) {
    471471            add_action( 'bp_blocks_init', array( $this, 'blocks_init' ), 10 );
    472472        }
Note: See TracChangeset for help on using the changeset viewer.