#22561 closed defect (bug) (invalid)
Unnecessary show_in_menu check in menu.php
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Administration | Version: | |
| Severity: | normal | Keywords: | |
| Cc: |
Description (last modified by ocean90)
get_post_types( array( 'show_in_menu' => true ) doesn't return an object, where show_in_menu is false.
Attachments (1)
Change History (4)
comment:2
SergeyBiryukov
— 7 months ago
- Keywords 3.6-early removed
- Milestone Future Release deleted
- Resolution set to invalid
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
Introduced in [15844].
show_in_menu can also be a string, e.g. 'tools.php' or 'edit.php?post_type=page'. In that case, the post type item will become a submenu of the corresponding top level menu item.
The patch would break that.