[wp-trac] [WordPress Trac] #38989: Invalid meta causes warning in WP_Test_REST_Post_Meta_Fields

WordPress Trac noreply at wordpress.org
Fri Dec 2 21:55:10 UTC 2016


#38989: Invalid meta causes warning in WP_Test_REST_Post_Meta_Fields
-------------------------------------------------+-------------------------
 Reporter:  timmydcrawford                       |       Owner:
     Type:  defect (bug)                         |  rachelbaker
 Priority:  normal                               |      Status:  closed
Component:  REST API                             |   Milestone:  4.7
 Severity:  normal                               |     Version:  trunk
 Keywords:  has-patch has-unit-tests commit      |  Resolution:  fixed
  dev-reviewed                                   |     Focuses:
-------------------------------------------------+-------------------------
Changes (by rachelbaker):

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


Comment:

 In [changeset:"39436"]:
 {{{
 #!CommitTicketReference repository="" revision="39436"
 REST API: Return a `WP_Error` if `meta` property is not an array.

 Fixes bug where a PHP Warning is currently thrown if a client sends a
 request where `meta` is not an array value.

 Props timmydcrawford, jnylen0, rachelbaker, pento.
 Fixes #38989.
 }}}

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


More information about the wp-trac mailing list