[wp-trac] [WordPress Trac] #12827: get_post_type() is incorrect
WordPress Trac
wp-trac at lists.automattic.com
Sat Apr 3 03:46:29 UTC 2010
#12827: get_post_type() is incorrect
--------------------------+-------------------------------------------------
Reporter: rmccue | Owner: rmccue
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.0
Component: Post Types | Version: 3.0
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
The inline documentation for `get_post_type()` is incorrect in stating
that the function uses the current post if none is specified.
Either the function needs to be changed to use the current post, or the
inline documentation needs to be correct. As nacin pointed out, the
function is `@since 2.1.0`, so the former is most likely a bad idea.
I think the function should be deprecated in favour of a function that has
the correct functionality, and the old function's documentation should be
corrected.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12827>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list