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

WordPress Trac noreply at wordpress.org
Thu Apr 9 22:52:59 UTC 2020


#49648: _fields parameter doesn't get nested proprieties from custom attribute
--------------------------+-------------------------
 Reporter:  Dudo          |       Owner:  kadamwhite
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  5.4.1
Component:  REST API      |     Version:  5.3
 Severity:  minor         |  Resolution:  fixed
 Keywords:  fixed-major   |     Focuses:  rest-api
--------------------------+-------------------------
Changes (by whyisjake):

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


Comment:

 In [changeset:"47563" 47563]:
 {{{
 #!CommitTicketReference repository="" revision="47563"
 REST API: Fix _fields filtering of registered rest fields.

 Use rest_is_field_included when determining which additional fields to
 include to permit filtering by nested field properties.

 Backportting r47511 to the 5.4 branch.

 Props Dudo, kadamwhite, TimothyBlynJacobs.
 Fixes #49648.
 }}}

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


More information about the wp-trac mailing list