[wp-trac] [WordPress Trac] #36510: Twenty eleven page templates with widgets incorrectly styled
WordPress Trac
noreply at wordpress.org
Fri Apr 15 19:22:42 UTC 2016
#36510: Twenty eleven page templates with widgets incorrectly styled
-------------------------------------------------+--------------------
Reporter: Clorith | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.5.1
Component: Bundled Theme | Version: 4.5
Severity: normal | Resolution:
Keywords: has-patch 2nd-opinion needs-testing | Focuses: ui
-------------------------------------------------+--------------------
Comment (by eceleste):
@krazykatz911, I think your patch may not always work because you do not
specify a priority for your `add_filter`. You want to be sure this
function gets called before TwentyEleven tries to add the `singular`
class, so you probably need to give it a lower priority. Since the
`add_filter` in the theme is at the default priority of 10, you should
give yours a lower priority, like this...
{{{
add_filter( 'body_class', 'wp36510_remove_singular_class', 1 );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36510#comment:33>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list