From 124b545b7947449726687d424ee408522db888eb Mon Sep 17 00:00:00 2001 From: donncha Date: Wed, 12 Jul 2006 11:46:30 +0000 Subject: Better theme admin page git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@659 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- index-install.php | 1 + wp-admin/wpmu-themes.php | 9 +++------ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/index-install.php b/index-install.php index 8058ffb..904537f 100644 --- a/index-install.php +++ b/index-install.php @@ -387,6 +387,7 @@ function step3() { $wpdb->query( "INSERT INTO ".$wpdb->sitemeta." (meta_id, site_id, meta_key, meta_value) VALUES (NULL, 1, 'blog_upload_space', '10' )" ); $wpdb->query( "INSERT INTO ".$wpdb->sitemeta." (meta_id, site_id, meta_key, meta_value) VALUES (NULL, 1, 'fileupload_maxk', '1500' )" ); $wpdb->query( "INSERT INTO ".$wpdb->sitemeta." (meta_id, site_id, meta_key, meta_value) VALUES (NULL, 1, 'site_admins', '" . serialize( array( 'admin' ) ) . "' )" ); + $wpdb->query( "INSERT INTO ".$wpdb->sitemeta." (meta_id, site_id, meta_key, meta_value) VALUES (NULL, 1, 'allowed_themes', '" . serialize( array( 'WordPress Classic', 'WordPress Default' ) ) . "' )" ); $wpdb->query( "INSERT INTO ".$wpdb->sitemeta." (meta_id, site_id, meta_key, meta_value) VALUES (NULL, 1, 'illegal_names', '" . serialize( array( "www", "web", "root", "admin", "main", "invite", "administrator" ) ) . "' )" ); $wpdb->query( "INSERT INTO ".$wpdb->sitemeta." (meta_id, site_id, meta_key, meta_value) VALUES (NULL, 1, 'welcome_email', 'Dear User, diff --git a/wp-admin/wpmu-themes.php b/wp-admin/wpmu-themes.php index a8e679c..ce482cd 100644 --- a/wp-admin/wpmu-themes.php +++ b/wp-admin/wpmu-themes.php @@ -13,16 +13,13 @@ if (isset($_GET['updated'])) { print '
'; $themes = get_themes(); $allowed_themes = get_site_option( "allowed_themes" ); -if( $allowed_themes == false ) { - $allowed_themes = array_keys( $themes ); -} ?>

Site Themes

- +"> -- cgit
Disable themes site-wide. You can enable themes on a blog by blog basis.
DisabledThemeDescription
ActiveThemeDescription
- +     - +