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

WordPress Trac noreply at wordpress.org
Sat Aug 22 01:52:56 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      |     Focuses:
---------------------------+-----------------------------
Changes (by SergeyBiryukov):

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


Comment:

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

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


More information about the wp-trac mailing list