| 1 | Index: wp-admin/network/edit.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- wp-admin/network/edit.php (revision 16119) |
|---|
| 4 | +++ wp-admin/network/edit.php (working copy) |
|---|
| 5 | @@ -300,25 +300,6 @@ |
|---|
| 6 | exit(); |
|---|
| 7 | break; |
|---|
| 8 | |
|---|
| 9 | - // Themes |
|---|
| 10 | - case 'updatethemes': |
|---|
| 11 | - if ( ! current_user_can( 'manage_network_themes' ) ) |
|---|
| 12 | - wp_die( __( 'You do not have permission to access this page.' ) ); |
|---|
| 13 | - |
|---|
| 14 | - if ( is_array( $_POST['theme'] ) ) { |
|---|
| 15 | - $themes = get_themes(); |
|---|
| 16 | - reset( $themes ); |
|---|
| 17 | - $allowed_themes = array(); |
|---|
| 18 | - foreach ( (array) $themes as $key => $theme ) { |
|---|
| 19 | - if ( $_POST['theme'][ esc_html( $theme['Stylesheet'] ) ] == 'enabled' ) |
|---|
| 20 | - $allowed_themes[ esc_html( $theme['Stylesheet'] ) ] = true; |
|---|
| 21 | - } |
|---|
| 22 | - update_site_option( 'allowedthemes', $allowed_themes ); |
|---|
| 23 | - } |
|---|
| 24 | - wp_redirect( add_query_arg( array( 'updated' => 'true', 'action' => 'themes' ), wp_get_referer() ) ); |
|---|
| 25 | - exit(); |
|---|
| 26 | - break; |
|---|
| 27 | - |
|---|
| 28 | // Common |
|---|
| 29 | case 'confirm': |
|---|
| 30 | if ( !headers_sent() ) { |
|---|