[wp-trac] [WordPress Trac] #49478: get_post_type_object has the wrong type of validator for its parameter
WordPress Trac
noreply at wordpress.org
Wed Feb 19 18:43:03 UTC 2020
#49478: get_post_type_object has the wrong type of validator for its parameter
-------------------------------+-----------------------------
Reporter: kamilkecki | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: 5.3.2
Severity: normal | Keywords: needs-patch
Focuses: |
-------------------------------+-----------------------------
https://core.trac.wordpress.org/browser/tags/5.3/src/wp-
includes/post.php?rev=46727#L1228
get_post_type_object expects a post type as a string as its parameter,
however it checks if the parameter is scalar or not and returns null if it
is not a number.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49478>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list