#38837 closed defect (bug) (invalid)
Body tag classes not getting spaced apart
Reported by: | Shaped Pixels | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Posts, Post Types | Keywords: | |
Focuses: | template | Cc: |
Description
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
Change History (4)
#3
in reply to:
↑ description
@
8 years ago
- Component changed from General to Posts, Post Types
Replying to Shaped Pixels:
Second, what brings me to this ticket is the non-space on this:
page-template-page-templatestemplate-widgetized-phpWhich should be this:
page-template-page-templates template-widgetized-php
It should really have a dash instead: page-template-page-templates-template-widgetized-php
, but there are backwards compatibility concerns, see #23470.
Note: See
TracTickets for help on using
tickets.
After submitting this, I realized that nothing will come of this one. Closed.