[wp-trac] [WordPress Trac] #22208: get_children() doesn't support 'fields' => 'ids' as an argument

WordPress Trac noreply at wordpress.org
Fri Mar 29 19:17:01 UTC 2013


#22208: get_children() doesn't support 'fields' => 'ids' as an argument
------------------------------------+------------------------------
 Reporter:  danielbachhuber         |       Owner:
     Type:  enhancement             |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  Query                   |     Version:  3.4.2
 Severity:  normal                  |  Resolution:
 Keywords:  dev-feedback has-patch  |
------------------------------------+------------------------------
Changes (by Jesper800):

 * keywords:  dev-feedback needs-patch => dev-feedback has-patch


Comment:

 I've added a patch that checks whether the fields parameter is set to
 either '''ids''' or '''id=>parent''', in which case it returns the result
 from get_posts. Please note that if this is the case, the $output
 parameter will have no effect.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22208#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list