[wp-trac] [WordPress Trac] #35164: Singular body class and main post post class

WordPress Trac noreply at wordpress.org
Sun Dec 20 23:52:41 UTC 2015


#35164: Singular body class and main post post class
--------------------------+------------------------------
 Reporter:  danielpataki  |       Owner:
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Themes        |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------
Changes (by peterwilsoncc):

 * version:  trunk =>
 * component:  General => Themes


Comment:

 I'm +1 for `singular`, it's added by twentyeleven and twentyfouteen so the
 need is demonstrated.

 My reading of `is_main_query` is it will always be true in the body, and
 if it isn't it's likely an indication the `pre_get_posts` filter should be
 used. If it isn't true, it will have been altered in code at which point a
 `body_class` filter  can be used.

 -1 on `main-post`

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


More information about the wp-trac mailing list