[wp-trac] [WordPress Trac] #10361: Needless query in get_body_class()
WordPress Trac
wp-trac at lists.automattic.com
Sun Oct 25 10:53:27 UTC 2009
#10361: Needless query in get_body_class()
-------------------------------+--------------------------------------------
Reporter: Denis-de-Bernardy | Owner:
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: Optimization | Version: 2.8
Severity: normal | Resolution: invalid
Keywords: has-patch |
-------------------------------+--------------------------------------------
Changes (by westi):
* status: new => closed
* resolution: => invalid
* milestone: 2.9 =>
Comment:
I don't think that var is currently setup when querying.
You would need to call get_post_ancestors().
Anyway this code is seeing if we have any children not any ancestors and
marking us as a parent.
Closing as INVALID.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10361#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list