Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#9414 closed enhancement (wontfix)

add_menu_page() improvement

Reported by: Denis-de-Bernardy Owned by:
Milestone: Priority: normal
Severity: minor Version: 2.7.1
Component: Administration Keywords: has-patch tested
Focuses: Cc:


Currently, there is no means to add a new separator to the WP menu without inserting it "manually" by editing the $menu variable.

It would be neat if, instead of the various lines in the $menu variable that add the separator, WP would determine that a new top level new menu item should always be preceded by a separator if part of the menu has been displayed already.

Alternatively, add_menu_page() and other functions such functions could insert the separator on the fly.

Attachments (1)

9414.diff (582 bytes) - added by Denis-de-Bernardy 7 years ago.

Download all attachments as: .zip

Change History (7)

#1 @Denis-de-Bernardy
7 years ago

  • Keywords has-patch tested commit added

#2 @ryan
7 years ago

I think the menu looks too busy with the separators. I like all plugin-added top-levels being in a menu group together. I'll get some feedback from the design folks.

#3 @Denis-de-Bernardy
7 years ago

  1. close as wontfix if someone reads this in 3 months, then. :-)

#4 @Denis-de-Bernardy
7 years ago

for what it's worth though, I initially came up into this one when designing my membership manager plugin. it has 6+ submenus and counting. so the separator was more or less in order.

#5 @Denis-de-Bernardy
7 years ago

  • Keywords commit removed

#6 @Denis-de-Bernardy
7 years ago

  • Milestone 2.8 deleted
  • Resolution set to wontfix
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.