[wp-trac] [WordPress Trac] #26866: Twenty Twelve uses class .singular that is not defined in the theme

WordPress Trac noreply at wordpress.org
Sat Jan 18 01:03:16 UTC 2014


#26866: Twenty Twelve uses class .singular that is not defined in the theme
---------------------------+-----------------------------
 Reporter:  TomasM         |      Owner:
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Bundled Theme  |    Version:  3.8
 Severity:  normal         |   Keywords:
---------------------------+-----------------------------
 In style.css under @media print we find bunch of rules with the class
 .singular. As far as I know, Twenty Twelve does not generate such body
 class.

 Most likely easiest way to fix it is to append code from Twenty Fourteen
 to the function that creates extra BODY classes:


 {{{
 if ( is_singular() && ! is_front_page() ) {
                 $classes[] = 'singular';
         }
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/26866>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list