[wp-trac] [WordPress Trac] #11092: get_body_class() needless messes with global variables
WordPress Trac
wp-trac at lists.automattic.com
Sat Nov 14 12:29:25 UTC 2009
#11092: get_body_class() needless messes with global variables
--------------------------+-------------------------------------------------
Reporter: filosofo | Owner: ryan
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.9
Component: Template | Version: 2.9
Severity: normal | Keywords: get_body_class has-patch tested
--------------------------+-------------------------------------------------
Comment(by Denis-de-Bernardy):
I'm suspicious of the suggested api call. the get_var() call could
arguably be improved (to exclude drafts, etc.), but it's probably faster
than any api call we can think of, since it's using an index to fetch a
primary key (i.e. it shouldn't even read the db tables).
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11092#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list