[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
Tue May 25 00:48:44 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 ryan):
If page is passed, then the is_single check will cause false to always be
returned, it seems. I think it should return immediately if ->is_singular
is false or if post_types is empty. Otherwise return the result of
in_array().
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12588#comment:27>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list