[wp-trac] [WordPress Trac] #14477: get_pages with child_of only works with uninterrupted hierarchies
WordPress Trac
noreply at wordpress.org
Wed Sep 25 16:44:38 UTC 2013
#14477: get_pages with child_of only works with uninterrupted hierarchies
------------------------------+-----------------------------
Reporter: vividvisions | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Query | Version: 3.0
Severity: normal | Resolution:
Keywords: has-patch commit |
------------------------------+-----------------------------
Changes (by nacin):
* milestone: 3.7 => Future Release
Comment:
Because this is distinctly an enhancement and 3.7 will have a very short
beta/RC period, punting to 3.8. I am fine with this being committed at the
start of the cycle if we can agree get_post_ancestors() is a sensible hit
here. I don't actually know if it is. Should we only try checking
ancestors if someone is filtering by meta key? Is it more likely than not
that the ancestor posts are already in cache, thus avoiding any kind of
ancestor queries? The answers to these questions are not difficult, but
they're not obvious.
There was also a discussion in IRC with markjaquith about this, and it
involved possibly adding a new parameter like descendant_of. Might not be
worth it for the purposes of maintaining compatibility, but could be worth
it for the purposes of performance. (Unless we agree that since this can
only happen if someone is filtering by meta key, thus it doesn't actually
matter as they're doing it to themselves.)
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14477#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list