[wp-trac] [WordPress Trac] #38837: Body tag classes not getting spaced apart

WordPress Trac noreply at wordpress.org
Thu Nov 17 01:48:22 UTC 2016


#38837: Body tag classes not getting spaced apart
---------------------------+-----------------------------
 Reporter:  Shaped Pixels  |      Owner:
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  General        |    Version:
 Severity:  normal         |   Keywords:
  Focuses:  template       |
---------------------------+-----------------------------
 This appears to be a bug, unless this is coded to add classes in the way I
 see it?

 Example, assigning a page template to a page, I get this (example) set of
 classes:

 - page-template
 - page-template-page-templates
 - page-template-template-widgetized
 - page-template-page-templatestemplate-widgetized-php
 - page page-id-99
 - logged-in

 First, that is really insane! :)

 Second, what brings me to this ticket is the non-space on this:


 {{{
 page-template-page-templatestemplate-widgetized-php
 }}}

 Which should be this:

 {{{
 page-template-page-templates template-widgetized-php
 }}}


 I'm going to guess this cannot be changed since so many people are using
 WordPress, but classes should be minimized to just:

 - '''page-template''' (a class to represent a template in general)
 - '''template-widgetized''' (the template name being used)
 - '''page-id-99''' (an id for targeting a specific page)
 - '''logged-in'''

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


More information about the wp-trac mailing list