In `wp-admin/plugins.php`, `break` is unreachabled after `exit`.

See #27882.

Built from https://develop.svn.wordpress.org/trunk@28311


git-svn-id: http://core.svn.wordpress.org/trunk@28139 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2014-05-06 18:13:14 +00:00
parent ac63c66c5a
commit 327b38f298
1 changed files with 7 additions and 7 deletions

View File

@ -60,7 +60,7 @@ if ( $action ) {
wp_redirect( self_admin_url("plugins.php?activate=true&plugin_status=$status&paged=$page&s=$s") ); // overrides the ?error=true one above wp_redirect( self_admin_url("plugins.php?activate=true&plugin_status=$status&paged=$page&s=$s") ); // overrides the ?error=true one above
} }
exit; exit;
break;
case 'activate-selected': case 'activate-selected':
if ( ! current_user_can('activate_plugins') ) if ( ! current_user_can('activate_plugins') )
wp_die(__('You do not have sufficient permissions to activate plugins for this site.')); wp_die(__('You do not have sufficient permissions to activate plugins for this site.'));
@ -101,7 +101,7 @@ if ( $action ) {
wp_redirect( self_admin_url("plugins.php?activate-multi=true&plugin_status=$status&paged=$page&s=$s") ); wp_redirect( self_admin_url("plugins.php?activate-multi=true&plugin_status=$status&paged=$page&s=$s") );
exit; exit;
break;
case 'update-selected' : case 'update-selected' :
check_admin_referer( 'bulk-plugins' ); check_admin_referer( 'bulk-plugins' );
@ -129,7 +129,7 @@ if ( $action ) {
echo '</div>'; echo '</div>';
require_once(ABSPATH . 'wp-admin/admin-footer.php'); require_once(ABSPATH . 'wp-admin/admin-footer.php');
exit; exit;
break;
case 'error_scrape': case 'error_scrape':
if ( ! current_user_can('activate_plugins') ) if ( ! current_user_can('activate_plugins') )
wp_die(__('You do not have sufficient permissions to activate plugins for this site.')); wp_die(__('You do not have sufficient permissions to activate plugins for this site.'));
@ -154,7 +154,7 @@ if ( $action ) {
/** This action is documented in wp-admin/includes/plugins.php */ /** This action is documented in wp-admin/includes/plugins.php */
do_action( "activate_{$plugin}" ); do_action( "activate_{$plugin}" );
exit; exit;
break;
case 'deactivate': case 'deactivate':
if ( ! current_user_can('activate_plugins') ) if ( ! current_user_can('activate_plugins') )
wp_die(__('You do not have sufficient permissions to deactivate plugins for this site.')); wp_die(__('You do not have sufficient permissions to deactivate plugins for this site.'));
@ -174,7 +174,7 @@ if ( $action ) {
else else
wp_redirect( self_admin_url("plugins.php?deactivate=true&plugin_status=$status&paged=$page&s=$s") ); wp_redirect( self_admin_url("plugins.php?deactivate=true&plugin_status=$status&paged=$page&s=$s") );
exit; exit;
break;
case 'deactivate-selected': case 'deactivate-selected':
if ( ! current_user_can('activate_plugins') ) if ( ! current_user_can('activate_plugins') )
wp_die(__('You do not have sufficient permissions to deactivate plugins for this site.')); wp_die(__('You do not have sufficient permissions to deactivate plugins for this site.'));
@ -205,7 +205,7 @@ if ( $action ) {
wp_redirect( self_admin_url("plugins.php?deactivate-multi=true&plugin_status=$status&paged=$page&s=$s") ); wp_redirect( self_admin_url("plugins.php?deactivate-multi=true&plugin_status=$status&paged=$page&s=$s") );
exit; exit;
break;
case 'delete-selected': case 'delete-selected':
if ( ! current_user_can('delete_plugins') ) if ( ! current_user_can('delete_plugins') )
wp_die(__('You do not have sufficient permissions to delete plugins for this site.')); wp_die(__('You do not have sufficient permissions to delete plugins for this site.'));
@ -324,7 +324,7 @@ if ( $action ) {
set_transient('plugins_delete_result_' . $user_ID, $delete_result); //Store the result in a cache rather than a URL param due to object type & length set_transient('plugins_delete_result_' . $user_ID, $delete_result); //Store the result in a cache rather than a URL param due to object type & length
wp_redirect( self_admin_url("plugins.php?deleted=true&plugin_status=$status&paged=$page&s=$s") ); wp_redirect( self_admin_url("plugins.php?deleted=true&plugin_status=$status&paged=$page&s=$s") );
exit; exit;
break;
case 'clear-recent-list': case 'clear-recent-list':
if ( ! is_network_admin() ) if ( ! is_network_admin() )
update_option( 'recently_activated', array() ); update_option( 'recently_activated', array() );