mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-04 18:01:42 +01:00
Make the 'Delete' action link for plugins red. fixes #12741, props jane.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14159 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e47e3cc31c
commit
d7f5f107e4
@ -531,7 +531,7 @@ function print_plugins_table($plugins, $context = '') {
|
||||
'network_only' => '', 'activate' => '',
|
||||
'network_activate' => '',
|
||||
'edit' => '',
|
||||
'plugin_delete' => '',
|
||||
'delete' => '',
|
||||
);
|
||||
|
||||
if ( 'mustuse' == $context ) {
|
||||
@ -575,7 +575,7 @@ function print_plugins_table($plugins, $context = '') {
|
||||
$actions['network_activate'] = '<a href="' . wp_nonce_url('plugins.php?action=activate&networkwide=1&plugin=' . $plugin_file . '&plugin_status=' . $context . '&paged=' . $page, 'activate-plugin_' . $plugin_file) . '" title="' . __('Activate this plugin for all sites in this network') . '" class="edit">' . __('Network Activate') . '</a>';
|
||||
|
||||
if ( current_user_can('delete_plugins') )
|
||||
$actions['plugin_delete'] = '<a href="' . wp_nonce_url('plugins.php?action=delete-selected&checked[]=' . $plugin_file . '&plugin_status=' . $context . '&paged=' . $page, 'bulk-manage-plugins') . '" title="' . __('Delete this plugin') . '" class="delete">' . __('Delete') . '</a>';
|
||||
$actions['delete'] = '<a href="' . wp_nonce_url('plugins.php?action=delete-selected&checked[]=' . $plugin_file . '&plugin_status=' . $context . '&paged=' . $page, 'bulk-manage-plugins') . '" title="' . __('Delete this plugin') . '" class="delete">' . __('Delete') . '</a>';
|
||||
} // end if $is_active
|
||||
|
||||
if ( current_user_can('edit_plugins') && is_writable(WP_PLUGIN_DIR . '/' . $plugin_file) )
|
||||
|
Loading…
Reference in New Issue
Block a user