WordPress.org

Make WordPress Core

Changeset 48849


Ignore:
Timestamp:
08/24/2020 10:33:09 AM (3 months ago)
Author:
SergeyBiryukov
Message:

REST API: In WP_REST_Block_Directory_Controller::get_items(), make sure the blocks data for a plugin is not empty before proceeding.

This avoids a PHP notice if the API returns a plugin with empty data for blocks key.

Props khag7, TwentyZeroTwo, justinahinon, TimothyBlynJacobs, dd32, SergeyBiryukov.
Merges [48842] to the 5.5 branch.
Fixes #51018.

Location:
branches/5.5
Files:
2 edited

Legend:

Unmodified
Added
Removed
Note: See TracChangeset for help on using the changeset viewer.