[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
Wed Apr 14 01:56:16 UTC 2010


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

 * cc: glenn@… (added)
  * keywords:  has-patch => has-patch dev-feedback


Comment:

 Was looking through tickets, saw that other ticket was closed.
 Removed lines per ryan's note, tested, changed $id=null to $id=false so it
 is compatible with get_post_type($the_post=false)

 Let me know if anything else needs changed.

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


More information about the wp-trac mailing list