[wp-trac] [WordPress Trac] #18554: Twenty Eleven body classes for singular does not check condition is_front_page()
WordPress Trac
wp-trac at lists.automattic.com
Wed Aug 31 14:02:06 UTC 2011
#18554: Twenty Eleven body classes for singular does not check condition
is_front_page()
----------------------------+-----------------------------
Reporter: Gabriel Reguly | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version: 3.2.1
Severity: normal | Keywords: has-patch
----------------------------+-----------------------------
Maybe this is by design, but I found odd that function
twentyeleven_body_classes tests for is_home() but does not test for
is_front_page().
As in:
{{{
if ( is_singular() && ! is_home()
}}}
So I propose a fix for this:
{{{
if ( is_singular() && ! is_home() && ! is_front_page()
}}}
Please find the amended file attached.
Regards,
Gabriel
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18554>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list