Ticket #20671: 20671.2.diff
File 20671.2.diff, 911 bytes (added by , 12 years ago) |
---|
-
wp-admin/network/themes.php
178 178 exit; 179 179 } // Endif verify-delete 180 180 181 foreach ( $themes as $theme ) 182 $delete_result = delete_theme( $theme, esc_url( add_query_arg( array('verify-delete' => 1), $_SERVER['REQUEST_URI'] ) ) ); 181 foreach ( $themes as $theme ) { 182 $delete_result = delete_theme( $theme, esc_url( add_query_arg( array( 183 'verify-delete' => 1, 184 'action' => 'delete-selected', 185 'checked' => $_REQUEST['checked'], 186 '_wpnonce' => $_REQUEST['_wpnonce'] 187 ), network_admin_url( 'themes.php' ) ) ) ); 188 } 183 189 $paged = ( $_REQUEST['paged'] ) ? $_REQUEST['paged'] : 1; 184 190 wp_redirect( network_admin_url( "themes.php?deleted=".count( $themes )."&paged=$paged&s=$s" ) ); 185 191 exit;