[wp-trac] [WordPress Trac] #35225: Incorrect documentation for get_post_types()
WordPress Trac
noreply at wordpress.org
Fri Dec 25 23:39:03 UTC 2015
#35225: Incorrect documentation for get_post_types()
-------------------------------+-----------------------------
Reporter: barryceelen | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: trunk
Severity: normal | Keywords:
Focuses: |
-------------------------------+-----------------------------
The documentation for get_post_types() incorrectly states that the
function accepts 'or' or 'and' as its $operator.
It uses the wp_filter_object_list() function, which in turn uses the
wp_list_filter() function, which both accept the 'not' operator. Since
there is nothing in the get_post_types() function preventing use of the
'not' operator it supports the 'not' operator as well.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35225>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list