[wp-trac] [WordPress Trac] #53099: PHP warnings due to wp_check_term_meta_support_prefilter callback

WordPress Trac noreply at wordpress.org
Tue Apr 27 18:35:07 UTC 2021


#53099: PHP warnings due to wp_check_term_meta_support_prefilter callback
--------------------------+-----------------------------
 Reporter:  david.binda   |       Owner:  SergeyBiryukov
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  5.8
Component:  REST API      |     Version:  5.5
 Severity:  normal        |  Resolution:  fixed
 Keywords:                |     Focuses:
--------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"50793" 50793]:
 {{{
 #!CommitTicketReference repository="" revision="50793"
 REST API: Check the results of `get_metadata()` in `WP_REST_Meta_Fields`
 methods.

 This avoids PHP warnings in case the function returns boolean `false`
 instead of an array.

 Props david.binda.
 Fixes #53099.
 }}}

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


More information about the wp-trac mailing list