[wp-trac] [WordPress Trac] #40325: Potential bug with the “get_post_type” function
WordPress Trac
noreply at wordpress.org
Fri Mar 31 22:13:15 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:
-------------------------------+------------------------------
Changes (by johnbillion):
* keywords: => reporter-feedback
Comment:
Thanks for the ticket, @ancientro. Welcome to WordPress Trac.
Does the code function as expected if you pass the `$post_id` parameter
into `get_post_type()`?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40325#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list