WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 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:

Description

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 5 years ago.

Download all attachments as: .zip

Change History (7)

Denis-de-Bernardy5 years ago

comment:1 Denis-de-Bernardy5 years ago

  • Keywords has-patch tested commit added

comment:2 ryan5 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.

comment:3 Denis-de-Bernardy5 years ago

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

comment:4 Denis-de-Bernardy5 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.

comment:5 Denis-de-Bernardy5 years ago

  • Keywords commit removed

comment:6 Denis-de-Bernardy5 years ago

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