[wp-trac] [WordPress Trac] #49648: _fields parameter doesn't get nested proprieties from custom attribute (was: WordPress 5.4 RC2 : _fields parameter doesn't get nested proprieties from custom attribute)

WordPress Trac noreply at wordpress.org
Wed Mar 25 23:11:27 UTC 2020


#49648: _fields parameter doesn't get nested proprieties from custom attribute
--------------------------------------+-------------------------
 Reporter:  Dudo                      |       Owner:  kadamwhite
     Type:  defect (bug)              |      Status:  accepted
 Priority:  normal                    |   Milestone:  5.5
Component:  REST API                  |     Version:  5.3
 Severity:  minor                     |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:  rest-api
--------------------------------------+-------------------------
Changes (by TimothyBlynJacobs):

 * version:  5.4 => 5.3


Comment:

 Switching to `rest_is_field_included` makes sense to me.

 It seems like the `global $wp_rest_additional_fields;
 $wp_rest_additional_fields = array();` pattern should probably be a part
 of the `tearDown` for that controller?

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


More information about the wp-trac mailing list