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

WordPress Trac noreply at wordpress.org
Thu Dec 1 17:19:28 UTC 2016


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

Comment (by joehoyle):

 @rachelbaker hmm I'm not a big fan of this approach. Special casing `meta`
 is not nice, and I think this is just a bit too special / one off. I think
 we should be able to add an `arg_options` here
 https://github.com/WordPress/WordPress/blob/master/wp-includes/rest-
 api/fields/class-wp-rest-meta-fields.php#L393 to specify a custom validate
 callback for this schema item.

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


More information about the wp-trac mailing list