[wp-trac] [WordPress Trac] #18118: Append page slug to body_class function

WordPress Trac noreply at wordpress.org
Tue May 27 21:46:02 UTC 2014


#18118: Append page slug to body_class function
------------------------------+-----------------------
 Reporter:  andrewsvg         |       Owner:
     Type:  enhancement       |      Status:  new
 Priority:  normal            |   Milestone:  4.0
Component:  Themes            |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |     Focuses:  template
------------------------------+-----------------------
Changes (by SergeyBiryukov):

 * keywords:  has-patch => has-patch commit
 * focuses:   => template
 * type:  feature request => enhancement
 * milestone:  Awaiting Review => 4.0


Comment:

 Replying to [comment:6 obenland]:
 > If page-specific styling is the purpose of this ticket, why not use the
 post/page ID classes?

 A page can accidentally be deleted, and when you recreate it, you don't
 get the same styling due to different ID.

 Just got bitten by this. Refreshed the patch.

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


More information about the wp-trac mailing list