WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#7931 closed enhancement (wontfix)

Shortcuts/favorites menu bug

Reported by: janeforshort Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: UI Keywords:
Focuses: Cc:

Description

When use dropdown to go to other screen, seems weird that it doesn't change the menu. kind of thinking that the most recent item used (from the dropdown) should be the item that shows as the default button state, rather than add new post always showing.

Change History (8)

comment:1 azaozz5 years ago

I think Add new Post has the highest "priority" as it replaces the button we used to have above the menu.

comment:2 ryan5 years ago

  • Component changed from Administration to UI
  • Owner anonymous deleted

comment:3 ryan5 years ago

It is a bit weird to for it to always show the same thing, but having it show the current would mean always having to use the hover to get off the current page.

comment:4 stevish5 years ago

Isn't this going to be customizable in the future? I don't know where, but I swear I heard that somewhere.

comment:5 thee175 years ago

I started writing code to custumize it on a per user basis on the Profile Screen, I did it as a multi select box but ran into a problem of how to get the entire menu in the multi select box as:

<option value="'post-new.php' => array(__('Add New Post'), 'edit_posts')"><?php _e( 'Add New Post' ); ?></option>

Also trying to figure out the adding something to the usermeta table and retriving it from the table, as I'm not used to interfacing with the database.

comment:6 azaozz5 years ago

The actions are an array: url => array ( title, user capability )

$actions = array(
		'post-new.php' => array(__('Add New Post'), 'edit_posts'),
		'page-new.php' => array(__('Add New Page'), 'edit_pages'),
		'edit-comments.php' => array(__('Manage Comments'), 'moderate_comments')
		);

	$actions = apply_filters('favorite_actions', $actions);

comment:7 janeforshort5 years ago

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

Given timeline, rescinding my comment, based on plan to make customizable in future version.

comment:8 Viper007Bond5 years ago

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