Make WordPress Core

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#25205 closed enhancement (duplicate)

filter for submenu_as_parent parameter

Reported by: plocha Owned by:
Priority: normal Milestone:
Component: Administration Version: 3.6
Severity: trivial Keywords: has-patch
Cc: Focuses:

Description

This filter enables plugins to remove the menu entries which have the same target as their parents.

We could use this filter to determine whether /wp-admin/menu.php and add_submenu_page should add 'same target' submenu entries. But I think there is no need for it because some plugins manually add such submenu entries. So plugins which use this filter should remove them manually.

Attachments (1)

submenu-as-parent.patch​ (345 bytes ) - added by plocha 13 years ago.

Download all attachments as: .zip

Change History (4)

#1 @plocha
13 years ago

  • Resolution → duplicate
  • Status new → closed

Duplicate of #19085.

#2 @SergeyBiryukov
13 years ago

  • Version trunk → 3.6

#3 @markoheijnen
13 years ago

  • Milestone Awaiting Review

Clearing out the milestones for closed tickets on Awaiting Review

Note: See TracTickets for help on using tickets.