[wp-trac] [WordPress Trac] #36510: Twenty eleven page templates with widgets incorrectly styled
WordPress Trac
noreply at wordpress.org
Wed Apr 13 15:05:20 UTC 2016
#36510: Twenty eleven page templates with widgets incorrectly styled
---------------------------+------------------------------
Reporter: Clorith | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bundled Theme | Version: 4.5
Severity: normal | Resolution:
Keywords: | Focuses: ui
---------------------------+------------------------------
Comment (by eceleste):
This appears to be due to the assignment of a `singular` class to the
`body` of pages in 4.5 where that not classed `singular` in 4.4. This is
probably due to some change in how line 700 of the twentyeleven
`functions.php` file is interpreted, since that appears to be the only
place that a distinction is made for the `sidebar-page.php` template. If I
use the Web Inspector in Safari to remove this `singular` class from the
`body` then the page reverts to its proper 4.4 look.
So what changed in the way 4.5 evaluates lines 700-701?
{{{
if ( is_singular() && ! is_home() && ! is_page_template(
'showcase.php' ) && ! is_page_template( 'sidebar-page.php' ) )
$classes[] = 'singular';
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36510#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list