Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/12/2021 07:48:13 PM (4 years ago)
Author:
imath
Message:

Make sure all BP components init their BP Blocks

Even if some components don't have native BP Blocks, it makes it easier for developers to add their custom blocks or override existing BP Blocks or disable BP Blocks. Working on the BP Blocks feature as a plugin made us realize this.

This commit also improves the BP_Block constructor inline documentation, adds a new method to the Core component to register REST controllers and moves the BP_REST_Components_Endpoint one from the Members component to the Core component.

Fixes #8511

File:
1 edited

Legend:

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

    r12869 r12994  
    457457        ) );
    458458    }
     459
     460    /**
     461     * Register the BP xProfile Blocks.
     462     *
     463     * @since 9.0.0
     464     *
     465     * @param array $blocks Optional. See BP_Component::blocks_init() for
     466     *                      description.
     467     */
     468    public function blocks_init( $blocks = array() ) {
     469        parent::blocks_init( array() );
     470    }
    459471}
Note: See TracChangeset for help on using the changeset viewer.