[wp-trac] [WordPress Trac] #40325: Potential bug with the “get_post_type” function

WordPress Trac noreply at wordpress.org
Sat Apr 1 13:36:55 UTC 2017


#40325: Potential bug with the “get_post_type” function
-------------------------------+------------------------------
 Reporter:  ancientro          |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Posts, Post Types  |     Version:  4.7.3
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------

Comment (by ancientro):

 I tested and if I pass the `$post_id` parameter into `get_post_type()`,
 the function works well in all cases and returns the proper post type
 name.

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


More information about the wp-trac mailing list