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

WordPress Trac wp-trac at lists.automattic.com
Tue Jul 26 09:29:06 UTC 2011


#18118: Append page slug to body_class function
-----------------------------+------------------------------
 Reporter:  andrewsvg        |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Themes           |     Version:
 Severity:  normal           |  Resolution:
 Keywords:                   |
-----------------------------+------------------------------

Comment (by DennisSmolek):

 this looks right:
 http://core.trac.wordpress.org/browser/tags/3.2.1/wp-includes/post-
 template.php
 add to line 330:
      $classes[] = $post->post_name;

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18118#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list