Make WordPress Core

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#38837 closed defect (bug) (invalid)

Body tag classes not getting spaced apart

Reported by: shaped-pixels's profile 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)

#1 @Shaped Pixels
8 years ago

  • Resolution set to invalid
  • Status changed from new to closed

#2 @Shaped Pixels
8 years ago

After submitting this, I realized that nothing will come of this one. Closed.

#3 in reply to: ↑ description @SergeyBiryukov
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-php

Which 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.

#4 @netweb
8 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.