Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/28/2019 08:38:00 PM (3 months ago)
Author:
imath
Message:

Prepare BuddyPress to welcome the BP REST API

  • Add a grunt tasks to import the master branch of the BP REST API into the BuddyPress /build directory.
  • Add some other grunt tasks to move each BP REST Controller class into their corresponding component classes directory.
  • Add the needed mechanism to make sure activating the BP REST API plugin will take over the BP REST API in BuddyPress core so that it is possible to iterate/fix bugs from the BP REST API GitHub repository.
  • Make sure the buddypress.pot is generated once the BP REST API has been imported.
  • Update the BuddyPress class autoloader to manage the loading of the BP REST API Controllers.
  • Add a new method rest_api_init() to the BP Component API to register the BP REST Controllers from their belonging component classes.

Props boonebgorges & espellcaste

See #7156

File:
1 edited

Legend:

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

    r12087 r12451  
    434434        parent::setup_cache_groups();
    435435    }
     436
     437    /**
     438     * Init the BP REST API.
     439     *
     440     * @since 5.0.0
     441     */
     442    public function rest_api_init() {
     443        $controller = new BP_REST_Messages_Endpoint();
     444        $controller->register_routes();
     445
     446        parent::rest_api_init();
     447    }
    436448}
Note: See TracChangeset for help on using the changeset viewer.