From c1afa3472d5d96f2be69a0fac6cb37a69774e0f9 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Sun, 31 Oct 2010 18:20:09 +0000 Subject: [PATCH] Remove old ajax handler. props PeteMall, see #14897. git-svn-id: https://develop.svn.wordpress.org/trunk@16120 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/network/edit.php | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/wp-admin/network/edit.php b/wp-admin/network/edit.php index 9e4cef4402..eb550fb0a4 100644 --- a/wp-admin/network/edit.php +++ b/wp-admin/network/edit.php @@ -300,25 +300,6 @@ switch ( $_GET['action'] ) { exit(); break; - // Themes - case 'updatethemes': - if ( ! current_user_can( 'manage_network_themes' ) ) - wp_die( __( 'You do not have permission to access this page.' ) ); - - if ( is_array( $_POST['theme'] ) ) { - $themes = get_themes(); - reset( $themes ); - $allowed_themes = array(); - foreach ( (array) $themes as $key => $theme ) { - if ( $_POST['theme'][ esc_html( $theme['Stylesheet'] ) ] == 'enabled' ) - $allowed_themes[ esc_html( $theme['Stylesheet'] ) ] = true; - } - update_site_option( 'allowedthemes', $allowed_themes ); - } - wp_redirect( add_query_arg( array( 'updated' => 'true', 'action' => 'themes' ), wp_get_referer() ) ); - exit(); - break; - // Common case 'confirm': if ( !headers_sent() ) {