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

WordPress Trac noreply at wordpress.org
Tue Oct 4 11:48:46 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:
----------------------------+------------------------------

Comment (by danburzo):

 Hi @ocean90, thank you for your patience with this!

 I'm just starting out reading the source code (which is very well
 documented, BTW!), there might be something I'm missing. Does that mean
 that the `is_single()` function will return `true` for a single attachment
 page? In which case this comment needs to be updated?

 {{{
 Is the query for an existing single post?
 Works for any post type, except attachments and pages
 }}}

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


More information about the wp-trac mailing list