[wp-trac] [WordPress Trac] #23470: Convert slash to dash and make body class for page templates look better

WordPress Trac noreply at wordpress.org
Wed Oct 29 22:19:09 UTC 2014


#23470: Convert slash to dash and make body class for page templates look better
--------------------------+-----------------------
 Reporter:  Caspie        |       Owner:  ocean90
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.1
Component:  Themes        |     Version:  3.4
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:  template
--------------------------+-----------------------
Changes (by ocean90):

 * owner:   => ocean90
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"30100"]:
 {{{
 #!CommitTicketReference repository="" revision="30100"
 Improve body class for page templates.

 * Convert slash to dash too.
 * Add sub-folder name as a separate body class.
 * New classes are additional classes, old syntax will persists for BC.

 With this `/page-templates/full-width.php` will produce `page-template`,
 `page-template-page-templates`, `page-template-full-width` and `page-
 template-page-templatesfull-width-php`.

 props obenland, Caspie, donutz.
 fixes #23470.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/23470#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list