summaryrefslogtreecommitdiffstats
path: root/wp-admin/options.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-07-06 10:41:20 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-07-06 10:41:20 +0000
commit779f0f4411b6467808ff053780c7c96ed0f9a571 (patch)
treefe52143d0597da054fc189e0c2058320d114cfc7 /wp-admin/options.php
parent78b9569980333f344366151f2dfc9e5b6412e175 (diff)
downloadwordpress-mu-779f0f4411b6467808ff053780c7c96ed0f9a571.tar.gz
wordpress-mu-779f0f4411b6467808ff053780c7c96ed0f9a571.tar.xz
wordpress-mu-779f0f4411b6467808ff053780c7c96ed0f9a571.zip
WP Merge
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@638 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-admin/options.php')
-rw-r--r--wp-admin/options.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/wp-admin/options.php b/wp-admin/options.php
index 78d49fe..097db91 100644
--- a/wp-admin/options.php
+++ b/wp-admin/options.php
@@ -55,7 +55,7 @@ case 'update':
if( $option == 'posts_per_page' && $value == '' )
$value = 10;
- if( $option == 'new_admin_email' && $value != get_option( 'admin_email' ) ) {
+ if( $option == 'new_admin_email' && $value != get_option( 'admin_email' ) && is_email( $val ) ) {
$hash = md5( $value.time().mt_rand() );
$newadminemail = array(
"hash" => $hash,
@@ -72,12 +72,13 @@ If this is correct, please click on the following link to change it:
You can safely ignore and delete this email if you do not want to
take this action.
+This email has been sent to '{$email}'
" );
} elseif (update_option($option, $value) ) {
$any_changed++;
}
- if ( 'language' == $option ) {
+ if ( 'lang_id' == $option ) {
$value = (int) $value;
update_blog_status( $wpdb->blogid, 'lang_id', $value );
$any_changed++;