diff --git a/src/wp-admin/includes/misc.php b/src/wp-admin/includes/misc.php
index 61d7698310..6bd2c61fd9 100644
a
|
b
|
function update_option_new_admin_email( $old_value, $value ) { |
1353 | 1353 | |
1354 | 1354 | $switched_locale = switch_to_locale( get_user_locale() ); |
1355 | 1355 | |
1356 | | /* translators: Do not translate USERNAME, ADMIN_URL, EMAIL, SITENAME, SITEURL: those are placeholders. */ |
| 1356 | /* translators: Do not translate USERNAME, ADMIN_URL, OLD_EMAIL, NEW_EMAIL, SITENAME, SITEURL: those are placeholders. */ |
1357 | 1357 | $email_text = __( |
1358 | | 'Howdy ###USERNAME###, |
| 1358 | 'Howdy, |
1359 | 1359 | |
1360 | | You recently requested to have the administration email address on |
1361 | | your site changed. |
| 1360 | The user \'###USERNAME###\' recently requested to have the administration |
| 1361 | email address on your site changed to ###NEW_EMAIL###. |
| 1362 | |
| 1363 | The previous email address is ###OLD_EMAIL###. |
1362 | 1364 | |
1363 | 1365 | If this is correct, please click on the following link to change it: |
1364 | 1366 | ###ADMIN_URL### |
… |
… |
If this is correct, please click on the following link to change it: |
1366 | 1368 | You can safely ignore and delete this email if you do not want to |
1367 | 1369 | take this action. |
1368 | 1370 | |
1369 | | This email has been sent to ###EMAIL### |
1370 | | |
1371 | 1371 | Regards, |
1372 | 1372 | All at ###SITENAME### |
1373 | 1373 | ###SITEURL###' |
… |
… |
All at ###SITENAME### |
1379 | 1379 | * The following strings have a special meaning and will get replaced dynamically: |
1380 | 1380 | * ###USERNAME### The current user's username. |
1381 | 1381 | * ###ADMIN_URL### The link to click on to confirm the email change. |
1382 | | * ###EMAIL### The proposed new site admin email address. |
| 1382 | * ###OLD_EMAIL### The old site admin email address. |
| 1383 | * ###NEW_EMAIL### The proposed new site admin email address. |
1383 | 1384 | * ###SITENAME### The name of the site. |
1384 | 1385 | * ###SITEURL### The URL to the site. |
1385 | 1386 | * |
… |
… |
All at ###SITENAME### |
1399 | 1400 | $current_user = wp_get_current_user(); |
1400 | 1401 | $content = str_replace( '###USERNAME###', $current_user->user_login, $content ); |
1401 | 1402 | $content = str_replace( '###ADMIN_URL###', esc_url( self_admin_url( 'options.php?adminhash=' . $hash ) ), $content ); |
1402 | | $content = str_replace( '###EMAIL###', $value, $content ); |
| 1403 | $content = str_replace( '###OLD_EMAIL###', $old_value, $content ); |
| 1404 | $content = str_replace( '###NEW_EMAIL###', $value, $content ); |
1403 | 1405 | $content = str_replace( '###SITENAME###', wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ), $content ); |
1404 | 1406 | $content = str_replace( '###SITEURL###', home_url(), $content ); |
1405 | 1407 | |