#35225 closed enhancement (fixed)
Incorrect documentation for get_post_types()
| Reported by: | barryceelen | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.5 |
| Component: | Posts, Post Types | Version: | 4.1 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Fix wp_filter_object_list() and get_post_types() documentation.