[wp-trac] [WordPress Trac] #22561: Unnecessary show_in_menu check in menu.php

WordPress Trac noreply at wordpress.org
Sun Nov 25 02:44:24 UTC 2012


#22561: Unnecessary show_in_menu check in menu.php
----------------------------+----------------------
 Reporter:  ocean90         |       Owner:
     Type:  defect (bug)    |      Status:  closed
 Priority:  normal          |   Milestone:
Component:  Administration  |     Version:
 Severity:  normal          |  Resolution:  invalid
 Keywords:  has-patch       |
----------------------------+----------------------
Changes (by SergeyBiryukov):

 * keywords:  has-patch 3.6-early => has-patch
 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Future Release =>


Comment:

 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.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22561#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list