[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
Thu May 20 07:10:58 UTC 2010


#12588: Add function to check if current page is a custom post type
-------------------------------------+--------------------------------------
 Reporter:  sirzooro                 |        Owner:  nacin   
     Type:  enhancement              |       Status:  reopened
 Priority:  normal                   |    Milestone:  3.0     
Component:  Administration           |      Version:  3.0     
 Severity:  normal                   |   Resolution:          
 Keywords:  has-patch needs-testing  |  
-------------------------------------+--------------------------------------

Comment(by scribu):

 Because we want is_singular('book') to return true only when there's a
 single book being displayed.

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


More information about the wp-trac mailing list