[wp-trac] [WordPress Trac] #20101: Can't use 'show_admin_bar' filter with conditional tags
WordPress Trac
wp-trac at lists.automattic.com
Wed Feb 22 19:14:08 UTC 2012
#20101: Can't use 'show_admin_bar' filter with conditional tags
--------------------------+------------------------------
Reporter: scribu | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Toolbar | Version:
Severity: normal | Resolution:
Keywords: |
--------------------------+------------------------------
Comment (by scribu):
I also tried this variation:
{{{
function scribu_show_admin_bar() {
return !did_action( 'template_redirect' ) || is_front_page();
}
}}}
which almost worked: I got the blank space mentioned in #16249
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20101#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list