WordPress.org

Make WordPress Core

Opened 17 months ago

Closed 17 months ago

Last modified 17 months ago

#22561 closed defect (bug) (invalid)

Unnecessary show_in_menu check in menu.php

Reported by: ocean90 Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Administration Keywords:
Focuses: 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)

22561.patch (727 bytes) - added by ocean90 17 months ago.

Download all attachments as: .zip

Change History (4)

ocean9017 months ago

comment:1 ocean9017 months ago

  • Description modified (diff)

comment:2 SergeyBiryukov17 months ago

  • Keywords 3.6-early removed
  • Milestone Future Release deleted
  • Resolution set to invalid
  • Status changed from new to closed

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.

comment:3 ocean9017 months ago

  • Keywords has-patch removed

Oops!

Note: See TracTickets for help on using tickets.