[wp-trac] [WordPress Trac] #38225: Unreachable code in get_body_class()?

WordPress Trac noreply at wordpress.org
Tue Oct 4 11:06:41 UTC 2016


#38225: Unreachable code in get_body_class()?
----------------------------+------------------------------
 Reporter:  danburzo        |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  General         |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  has-unit-tests  |     Focuses:
----------------------------+------------------------------
Changes (by ocean90):

 * keywords:   => has-unit-tests
 * version:  trunk =>


Comment:

 Hello @danburzo, welcome to Trac!

 I've attached a unit test in [attachment:38225.patch] which shows that
 it's working. `is_single()` is true because of [[source:trunk/src/wp-
 includes/class-wp-query.php?rev=38586&marks=808-810#L806|this line]].

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


More information about the wp-trac mailing list