WordPress.org

Make WordPress Core

Opened 9 years ago

Closed 4 years ago

Last modified 4 years ago

#15796 closed enhancement (maybelater)

Add spacing in the menu between 59 and 60 to allow menu items to appear above appearance

Reported by: Frumph Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.1
Component: Plugins Keywords: close
Focuses: administration Cc:

Description

I would like to place a menu item above appearance however the spacer is directly above the Appearance menu item at 60, the spacer is at 59, just a simple request to appropriate more space that is empty, 55 for the spacer and keep the appearance 60 giving 56,57,58,59 for add_menu items above 60

Attachments (1)

add_sep_space.diff (1.0 KB) - added by Frumph 9 years ago.

Download all attachments as: .zip

Change History (11)

@Frumph
9 years ago

#1 @nacin
9 years ago

We can't do this while remaining backwards compatible.

#2 @Frumph
9 years ago

Hrm, then an action location to add another menu spacer in a particular location would be a nice ability, as a seperator to denote a sep. section, i'll see if I can figure out how to do that without losing continuity of the current sections, like an option to add_menu item where it displays partitioning lines.

#3 @jane
9 years ago

  • Milestone changed from Awaiting Review to Future Release

#4 @jane
9 years ago

  • Component changed from Menus to Administration

Changing component, as Menus component refers to the custom menu feature.

#5 @iseulde
6 years ago

You could overwrite the separator at 59 and add a separator higher up. Maybe an easy way to add separators would be nice to have in core.
Here's one solution for now: http://wordpress.stackexchange.com/questions/2666/add-a-separator-to-the-admin-menu.

#6 @jeremyfelt
5 years ago

  • Component changed from Administration to Toolbar
  • Focuses administration added

#7 @nacin
5 years ago

  • Component changed from Toolbar to Plugins

(Sorry, doing some cleaning. This is the admin menu, not the toolbar, so best place for this is "Plugins", where the admin menu API lives.)

#8 @cfoellmann
5 years ago

  • Keywords close added

You can add menu item above 'Appearances' easily. Not fix or "cowboy-coding" like in the stackexchange topic needed:

add_menu_page(
	$page_title,
	$menu_title,
	$capability,
	$menu_slug,
	$function,
	$icon_url,
	'59.5' // this will move the item below the 'separator2' and 'appearance' menu item
);

#9 @Frumph
4 years ago

  • Resolution set to maybelater
  • Status changed from new to closed

#10 @netweb
4 years ago

  • Milestone Future Release deleted
Note: See TracTickets for help on using tickets.