WordPress.org

Make WordPress Core

Opened 4 months ago

Last modified 6 days ago

#41839 new enhancement

Add "Update available" option to "Plugins" on the admin menu

Reported by: Josiah S. Carberry Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.9
Component: Menus Keywords: 2nd-opinion
Focuses: ui Cc:

Description

I update plugins on my site several times a week. I add a new plugin maybe once or twice a year.

I generally perform the update from the list of plugins rather than going directly to updates, as might appear in the admin toolbar.

From the perspective of usability and efficiency, it would be much more useful to have the options "Updates available" under the "Plugin" entry in the admin menu, than "Add new". So I am suggesting that this option be added to the main admin menu, visible when and if such updates are available.

I am not suggesting that "Add new" be removed.

Attachments (1)

screenshot.png (4.8 KB) - added by Josiah S. Carberry 4 months ago.
screen shot showing that updating the plugins is not an option on the Plugin entry when plugin updates are available

Download all attachments as: .zip

Change History (7)

#1 @mrmadhat
4 months ago

Doesn't this feature already exist? https://imgur.com/rTUUSo5

@Josiah S. Carberry
4 months ago

screen shot showing that updating the plugins is not an option on the Plugin entry when plugin updates are available

#2 @Josiah S. Carberry
4 months ago

No. See the screenshot above.

#3 @danieltj
4 months ago

  • Keywords 2nd-opinion added

If you click on the Plugin link in the admin menu, it'll take you to the unfiltered list of plugins where you can update them. I'm not sure how hopeful it'd be to add another link to the menu.

#4 @Josiah S. Carberry
4 months ago

You could say exactly the same thing about adding new plugins. If it is worthwhile to have an "Add new" option for "Plugin", then surely it is worthwhile to have an update option, which is used at least two orders of magnitude more frequently.

#5 follow-up: @catchmyfame
6 days ago

@Josiah S. Carberry I've wanted this for a while and just wrote up the code that does it in a plugin. Essentially you can create your own plugin or modify your functions.php.

add_action('admin_menu', 'add_plugin_submenu_items');
function add_plugin_submenu_items() {
    // Add submenu items to the left hand plugins menu to quickly jump to the active, inactive, and update available pages.
    if ( current_user_can( 'manage_options' ) ) {
	add_submenu_page( 'plugins.php', 'Active', 'Active', 'manage_options', 'plugins.php?plugin_status=active');
	add_submenu_page( 'plugins.php', 'Inactive', 'Inactive', 'manage_options', 'plugins.php?plugin_status=inactive');
	add_submenu_page( 'plugins.php', 'Updates', 'Updates', 'manage_options', 'plugins.php?plugin_status=upgrade');
    }
}

The only caveats are that it will always show the Updates submenu option even if there aren't any, and it doesn't include the update count if there is one.

Last edited 6 days ago by catchmyfame (previous) (diff)

#6 in reply to: ↑ 5 @Josiah S. Carberry
6 days ago

Replying to catchmyfame:
Yes, something like that would save clicks. Thanks! I note that there is an extraneous single quote in your code, which I have removed below:

add_action('admin_menu', 'add_plugin_submenu_items');
function add_plugin_submenu_items() {
    // Add submenu items to the left hand plugins menu to quickly jump to the active, inactive, and update available pages.
    if ( current_user_can( 'manage_options' ) ) {
	add_submenu_page( 'plugins.php', 'Active', 'Active', 'manage_options', 'plugins.php?plugin_status=active');
	add_submenu_page( 'plugins.php', 'Inactive', 'Inactive', 'manage_options', 'plugins.php?plugin_status=inactive');
	add_submenu_page( 'plugins.php', 'Updates', 'Updates', 'manage_options', 'plugins.php?plugin_status=upgrade');
    }
}
Note: See TracTickets for help on using tickets.