summaryrefslogtreecommitdiffstats
path: root/wp-admin/admin-functions.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-08-09 11:17:26 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-08-09 11:17:26 +0000
commitc398c872356d58aba3f21d8a3b4938a1167a62d2 (patch)
treee666236d510b50f06acff9fba6cceb626c72cceb /wp-admin/admin-functions.php
parentbcddc869e99c78aa66070f2ff64d19b8552aa151 (diff)
downloadwordpress-mu-c398c872356d58aba3f21d8a3b4938a1167a62d2.tar.gz
wordpress-mu-c398c872356d58aba3f21d8a3b4938a1167a62d2.tar.xz
wordpress-mu-c398c872356d58aba3f21d8a3b4938a1167a62d2.zip
gettext the admin password email, props momo360modena, fixes 365
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1034 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-admin/admin-functions.php')
-rw-r--r--wp-admin/admin-functions.php34
1 files changed, 17 insertions, 17 deletions
diff --git a/wp-admin/admin-functions.php b/wp-admin/admin-functions.php
index f23f3ce..37daf60 100644
--- a/wp-admin/admin-functions.php
+++ b/wp-admin/admin-functions.php
@@ -2359,26 +2359,26 @@ function update_option_new_admin_email($old_value, $value) {
$hash = md5( $value.time().mt_rand() );
$newadminemail = array(
- "hash" => $hash,
- "newemail" => $value
+ "hash" => $hash,
+ "newemail" => $value
);
update_option( 'adminhash', $newadminemail );
- // TODO: gettext
- wp_mail( $value, "[ " . get_option( 'blogname' ) . " ] New Admin Email Address", "Dear User,
-
+
+ $content = __("Dear user,\n\n
You recently requested to have the administration email address on
-your blog changed.
-If this is correct, please click on the following link to change it:
-" . get_option( "siteurl" ) . "/wp-admin/options.php?adminhash={$hash}
-
-You can safely ignore and delete this email if you do not want to
-take this action.
-
-This email has been sent to '{$value}'
-
-Regards,
-The Webmaster" );
+your blog changed.\n
+If this is correct, please click on the following link to change it:\n
+###ADMIN_URL###\n\n
+You can safely ignore and delete this email if you do not want to take this action.\n\n
+This email has been sent to ###EMAIL###\n\n
+Regards,\n
+The Webmaster");
+
+ $content = str_replace('###ADMIN_URL###', get_option( "siteurl" ).'/wp-admin/options.php?adminhash='.$hash, $content);
+ $content = str_replace('###EMAIL###', $value, $content);
+
+ wp_mail( $value, sprintf(__('[%s] New Admin Email Address'), get_option('blogname')), $content );
}
add_action('update_option_new_admin_email', 'update_option_new_admin_email', 10, 2);
-?>
+?> \ No newline at end of file