[wp-trac] [WordPress Trac] #41839: Add "Update available" option to "Plugins" on the admin menu
WordPress Trac
noreply at wordpress.org
Fri Jan 12 16:54:52 UTC 2018
#41839: Add "Update available" option to "Plugins" on the admin menu
--------------------------------+------------------------------
Reporter: Josiah S. Carberry | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Menus | Version: 4.9
Severity: normal | Resolution:
Keywords: 2nd-opinion | Focuses: ui
--------------------------------+------------------------------
Comment (by Josiah S. Carberry):
Replying to [comment:5 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');
}
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41839#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list