]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/themes.php
Wordpress 2.8.3
[autoinstalls/wordpress.git] / wp-admin / themes.php
index f008307ebba49a2dd9b6f24cd4827dde141c398b..7ff6cb4a7e133ddc294092dd4a261d1c9ea9534f 100644 (file)
@@ -9,6 +9,9 @@
 /** WordPress Administration Bootstrap */
 require_once('admin.php');
 
+if ( !current_user_can('switch_themes') )
+       wp_die( __( 'Cheatin’ uh?' ) );
+
 if ( isset($_GET['action']) ) {
        if ( 'activate' == $_GET['action'] ) {
                check_admin_referer('switch-theme_' . $_GET['template']);