#35225 closed enhancement (fixed)
Incorrect documentation for get_post_types()
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.5 | Priority: | normal |
Severity: | normal | Version: | 4.1 |
Component: | Posts, Post Types | Keywords: | |
Focuses: | Cc: |
Description
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.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
Fix wp_filter_object_list() and get_post_types() documentation.