[wp-trac] [WordPress Trac] #51018: PHP Notice thrown when searching for certain terms via the Gutenberg block directory

WordPress Trac noreply at wordpress.org
Mon Aug 24 10:33:25 UTC 2020


#51018: PHP Notice thrown when searching for certain terms via the Gutenberg block
directory
------------------------------------------+-----------------------------
 Reporter:  TwentyZeroTwo                 |       Owner:  SergeyBiryukov
     Type:  defect (bug)                  |      Status:  closed
 Priority:  normal                        |   Milestone:  5.5.1
Component:  Editor                        |     Version:  5.5
 Severity:  normal                        |  Resolution:  fixed
 Keywords:  has-patch commit fixed-major  |     Focuses:
------------------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"48849" 48849]:
 {{{
 #!CommitTicketReference repository="" revision="48849"
 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.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51018#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list