Changeset 48849
- Timestamp:
- 08/24/2020 10:33:09 AM (4 years ago)
- Location:
- branches/5.5
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.5
-
branches/5.5/src/wp-includes/rest-api/endpoints/class-wp-rest-block-directory-controller.php
r48656 r48849 96 96 97 97 foreach ( $response->plugins as $plugin ) { 98 // If the API returned a plugin with empty data for 'blocks', skip it. 99 if ( empty( $plugin['blocks'] ) ) { 100 continue; 101 } 102 98 103 $data = $this->prepare_item_for_response( $plugin, $request ); 99 104 $result[] = $this->prepare_response_for_collection( $data );
Note: See TracChangeset
for help on using the changeset viewer.