[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:13:40 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:
--------------------------------------+--------------------------
Changes (by rachelbaker):
* keywords: needs-refresh has-patch => has-patch has-unit-tests
Comment:
@joehoyle What do you think about my approach in
[attachment:38989.2.diff]? There is a limitation in that any request with
a `meta` property now has to be an array. The benefit is that we don't
have to add `is_array` checks in 8 different methods and remember to
include the check in any other endpoints that would use `meta`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38989#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list