Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/12/2021 07:48:13 PM (3 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/tests/phpunit/testcases/core/class-bp-component.php

    r12607 r12994  
    3131
    3232        $this->assertSame( $bp->unit_test_rest->controllers, array(
    33             'BP_REST_Components_Endpoint',
    3433            'BP_REST_Members_Endpoint',
    3534            'BP_REST_Attachments_Member_Avatar_Endpoint',
     
    4948
    5049        $this->assertSame( $bp->unit_test_rest->controllers, array(
    51             'BP_REST_Components_Endpoint',
    5250            'BP_REST_Attachments_Member_Avatar_Endpoint',
    5351            'BP_REST_Attachments_Member_Cover_Endpoint',
     
    6664
    6765        $this->assertSame( $bp->unit_test_rest->controllers, array(
    68             'BP_REST_Components_Endpoint',
    6966            'BP_REST_Members_Endpoint',
    7067            'BP_REST_Attachments_Member_Avatar_Endpoint',
Note: See TracChangeset for help on using the changeset viewer.