From 779f0f4411b6467808ff053780c7c96ed0f9a571 Mon Sep 17 00:00:00 2001 From: donncha Date: Thu, 6 Jul 2006 10:41:20 +0000 Subject: WP Merge git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@638 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-admin/options.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'wp-admin/options.php') 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++; -- cgit