Changeset 12607 for trunk/src/bp-blogs/classes/class-bp-blogs-component.php
- Timestamp:
- 03/31/2020 11:33:35 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-blogs/classes/class-bp-blogs-component.php
r12587 r12607 357 357 parent::setup_cache_groups(); 358 358 } 359 360 /** 361 * Init the BP REST API. 362 * 363 * @since 6.0.0 364 * 365 * @param array $controllers Optional. See BP_Component::rest_api_init() for 366 * description. 367 */ 368 public function rest_api_init( $controllers = array() ) { 369 if ( is_multisite() ) { 370 $controllers = array( 371 'BP_REST_Blogs_Endpoint', 372 ); 373 374 // Support to Blog Avatar. 375 if ( bp_is_active( 'blogs', 'site-icon' ) ) { 376 $controllers[] = 'BP_REST_Attachments_Blog_Avatar_Endpoint'; 377 } 378 } 379 380 parent::rest_api_init( $controllers ); 381 } 359 382 }
Note: See TracChangeset
for help on using the changeset viewer.