summaryrefslogtreecommitdiffstats
path: root/wp-admin/wpmu-edit.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-05-12 14:29:55 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-05-12 14:29:55 +0000
commit91101bb2c3125255a1ec9a2ea53a417adf3897f4 (patch)
tree4af0db8f2cefe9644875101e8f60ac63cf29403b /wp-admin/wpmu-edit.php
parentddd451d32f7604b6632ed3b68bbbacf655df3a61 (diff)
downloadwordpress-mu-91101bb2c3125255a1ec9a2ea53a417adf3897f4.tar.gz
wordpress-mu-91101bb2c3125255a1ec9a2ea53a417adf3897f4.tar.xz
wordpress-mu-91101bb2c3125255a1ec9a2ea53a417adf3897f4.zip
Change limited_email_domains to a textarea, props momo360modena for patch, fixes #426
Handle changing from space deliminated string to array git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1285 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-admin/wpmu-edit.php')
-rw-r--r--wp-admin/wpmu-edit.php20
1 files changed, 13 insertions, 7 deletions
diff --git a/wp-admin/wpmu-edit.php b/wp-admin/wpmu-edit.php
index 03d6c82..26293d1 100644
--- a/wp-admin/wpmu-edit.php
+++ b/wp-admin/wpmu-edit.php
@@ -12,7 +12,7 @@ if( $_GET[ 'id' ] ) {
$id = intval( $_POST[ 'id' ] );
}
-if( isset( $_POST['ref'] ) == false && empty( $_SERVER['HTTP_REFERER'] ) == false ) {
+if( isset( $_POST['ref'] ) == false && !empty($_SERVER['HTTP_REFERER']) ) {
$_POST['ref'] = $_SERVER['HTTP_REFERER'];
}
@@ -24,28 +24,34 @@ switch( $_GET['action'] ) {
wp_die( __("You probably need to go back to the <a href='wpmu-options.php'>options page</a>") );
update_site_option( "WPLANG", $_POST['WPLANG'] );
+
if( is_email( $_POST['admin_email'] ) )
update_site_option( "admin_email", $_POST['admin_email'] );
- $illegal_names = split( ' ', $_POST['illegal_names'] );
-
+
+ $illegal_names = split( ' ', $_POST['illegal_names'] );
foreach( (array) $illegal_names as $name ) {
$name = trim( $name );
if( $name != '' )
$names[] = trim( $name );
}
-
update_site_option( "illegal_names", $names );
+
update_site_option( "registration", $_POST['registration'] );
update_site_option( "registrationnotification", $_POST['registrationnotification'] );
-
+
if( $_POST['limited_email_domains'] != '' ) {
- update_site_option( "limited_email_domains", split( ' ', $_POST['limited_email_domains'] ) );
+ $limited_email_domains = str_replace( ' ', "\n", $_POST[ 'limited_email_domains' ] );
+ $limited_email_domains = split( "\n", stripslashes( $limited_email_domains ) );
+ foreach( (array) $limited_email_domains as $domain ) {
+ $limited_email[] = trim( $domain );
+ }
+ update_site_option( "limited_email_domains", $limited_email );
} else {
update_site_option( "limited_email_domains", '' );
}
if( $_POST['banned_email_domains'] != '' ) {
- $banned_email_domains = split( "\n", stripslashes($_POST['banned_email_domains']) );
+ $banned_email_domains = split( "\n", stripslashes( $_POST[ 'banned_email_domains' ] ) );
foreach( (array) $banned_email_domains as $domain ) {
$banned[] = trim( $domain );
}