[wp-trac] [WordPress Trac] #22110: Check for current conditional
WordPress Trac
wp-trac at lists.automattic.com
Fri Oct 5 18:01:28 UTC 2012
#22110: Check for current conditional
-------------------------+------------------------------
Reporter: mintindeed | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: normal | Resolution:
Keywords: |
-------------------------+------------------------------
Comment (by mintindeed):
Replying to [comment:4 scribu]:
> > it wouldn't work if you needed to programmaticallly find "where am I"
in a feed, or anywhere that's not really user-facing.
>
> Why not?
Using feeds as an example, in the default feed:
{{{
var_dump(get_body_class());
array (size=0)
empty
}}}
In a custom feed:
{{{
var_dump(get_body_class());
array (size=3)
0 => string 'logged-in' (length=9)
1 => string 'admin-bar' (length=9)
2 => string 'no-customize-support' (length=20)
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22110#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list