From 0ee2237e6cc175d3abb4f7fc6264438e4be1bf25 Mon Sep 17 00:00:00 2001 From: wpmuguru Date: Tue, 9 Feb 2010 18:03:46 +0000 Subject: [PATCH] prevent editing site domain/path on multisite main site, see #12177 git-svn-id: http://svn.automattic.com/wordpress/trunk@13039 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/ms-sites.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/wp-admin/ms-sites.php b/wp-admin/ms-sites.php index 729756ed5..4f0f1bce3 100644 --- a/wp-admin/ms-sites.php +++ b/wp-admin/ms-sites.php @@ -79,6 +79,7 @@ switch ( $action ) { $options = $wpdb->get_results( "SELECT * FROM {$blog_prefix}options WHERE option_name NOT LIKE '\_%' AND option_name NOT LIKE '%user_roles'" ); $details = get_blog_details($id); $editblog_roles = get_blog_option( $id, "{$blog_prefix}user_roles" ); + $is_main_site = is_main_site( $id ); ?>
@@ -93,12 +94,20 @@ switch ( $action ) { + + + + + + + + @@ -176,7 +185,11 @@ switch ( $action ) { ?> +option_name, array( 'siteurl', 'home' ) ) ) { ?> + + +
http://domain) ?> http://
path) ?>
/>
option_name ) ) ?>option_value ) ?> />