[wp-trac] [WordPress Trac] #12588: Add function to check if current page is a custom post type

WordPress Trac wp-trac at lists.automattic.com
Fri May 7 12:37:37 UTC 2010


#12588: Add function to check if current page is a custom post type
----------------------------+-----------------------------------------------
 Reporter:  sirzooro        |        Owner:  nacin   
     Type:  defect (bug)    |       Status:  reopened
 Priority:  normal          |    Milestone:  3.0     
Component:  Administration  |      Version:  3.0     
 Severity:  normal          |   Resolution:          
 Keywords:  has-patch       |  
----------------------------+-----------------------------------------------
Changes (by chrisscott):

  * status:  closed => reopened
  * resolution:  fixed =>


Comment:

 As originally committed and documented in [14158] this function defaulted
 to the current post ID if it wasn't passed. That's now changed in [14498].
 This seems like a bug since the original commit and subsequent patches
 retained/fixed that functionality.

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


More information about the wp-trac mailing list