Make WordPress Core

Changeset 28308


Ignore:
Timestamp:
05/06/2014 06:07:33 PM (11 years ago)
Author:
wonderboymusic
Message:

In wp-admin/network/themes.php, break is unreachabled after exit.

See #27882.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/network/themes.php

    r27469 r28308  
    4141                wp_safe_redirect( add_query_arg( 'enabled', 1, $referer ) );
    4242            exit;
    43             break;
    4443        case 'disable':
    4544            check_admin_referer('disable-theme_' . $_GET['theme']);
     
    4847            wp_safe_redirect( add_query_arg( 'disabled', '1', $referer ) );
    4948            exit;
    50             break;
    5149        case 'enable-selected':
    5250            check_admin_referer('bulk-themes');
     
    6159            wp_safe_redirect( add_query_arg( 'enabled', count( $themes ), $referer ) );
    6260            exit;
    63             break;
    6461        case 'disable-selected':
    6562            check_admin_referer('bulk-themes');
     
    7471            wp_safe_redirect( add_query_arg( 'disabled', count( $themes ), $referer ) );
    7572            exit;
    76             break;
    7773        case 'update-selected' :
    7874            check_admin_referer( 'bulk-themes' );
     
    10096            require_once(ABSPATH . 'wp-admin/admin-footer.php');
    10197            exit;
    102             break;
    10398        case 'delete-selected':
    10499            if ( ! current_user_can( 'delete_themes' ) )
     
    183178                ), network_admin_url( 'themes.php' ) ) ) );
    184179            }
    185            
     180
    186181            $paged = ( $_REQUEST['paged'] ) ? $_REQUEST['paged'] : 1;
    187182            wp_redirect( add_query_arg( array(
     
    191186            ), network_admin_url( 'themes.php' ) ) );
    192187            exit;
    193             break;
    194188    }
    195189}
Note: See TracChangeset for help on using the changeset viewer.