[wp-trac] [WordPress Trac] #17026: parent_dropdown() is not filterable
WordPress Trac
noreply at wordpress.org
Sat Sep 14 05:43:24 UTC 2013
#17026: parent_dropdown() is not filterable
-------------------------+------------------
Reporter: kevinB | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.7
Component: Query | Version:
Severity: normal | Resolution:
Keywords: has-patch |
-------------------------+------------------
Comment (by SergeyBiryukov):
I see two issues with [attachment:17026.diff]:
1. It only returns 5 top pages by default, where as the current query has
no limit.
2. If we fix point 1, it's less scalable, since there's no way to only
request `ID`, `post_parent`, and `post_title` fields using `get_posts()`
without additional filtering. It'll be requesting all the fields for all
pages.
I guess this should wait until we allow the `fields` parameter to be an
array, as noted in comment:1. If that isn't feasible for some reason,
perhaps we should filter `$items` instead?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17026#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list