Ticket #31217: 31217-ms.diff
| File 31217-ms.diff, 2.2 KB (added by , 11 years ago) |
|---|
-
wp-admin/includes/ms.php
253 253 ); 254 254 update_option( 'adminhash', $new_admin_email ); 255 255 256 $email_text = __( ' Dear user,256 $email_text = __( 'Howdy ###USERNAME###, 257 257 258 258 You recently requested to have the administration email address on 259 259 your site changed. 260 260 261 If this is correct, please click on the following link to change it: 261 262 ###ADMIN_URL### 262 263 … … 277 278 * ###EMAIL### The new email. 278 279 * ###SITENAME### The name of the site. 279 280 * ###SITEURL### The URL to the site. 281 * ###USERNAME### The current user's username. 280 282 * 281 283 * @since MU 282 284 * … … 289 291 $content = str_replace( '###EMAIL###', $value, $content ); 290 292 $content = str_replace( '###SITENAME###', get_site_option( 'site_name' ), $content ); 291 293 $content = str_replace( '###SITEURL###', network_home_url(), $content ); 294 $content = str_replace( '###USERNAME###', $current_user->user_login, $content ); 292 295 293 296 wp_mail( $value, sprintf( __( '[%s] New Admin Email Address' ), wp_specialchars_decode( get_option( 'blogname' ) ) ), $content ); 294 297 } … … 331 334 ); 332 335 update_option( $current_user->ID . '_new_email', $new_user_email ); 333 336 334 $email_text = __( ' Dear user,337 $email_text = __( 'Howdy ###USERNAME###, 335 338 336 339 You recently requested to have the email address on your account changed. 337 340 If this is correct, please click on the following link to change it: … … 354 357 * ###EMAIL### The new email. 355 358 * ###SITENAME### The name of the site. 356 359 * ###SITEURL### The URL to the site. 360 * ###USERNAME### The current user's username. 357 361 * 358 362 * @since MU 359 363 * … … 366 370 $content = str_replace( '###EMAIL###', $_POST['email'], $content); 367 371 $content = str_replace( '###SITENAME###', get_site_option( 'site_name' ), $content ); 368 372 $content = str_replace( '###SITEURL###', network_home_url(), $content ); 373 $content = str_replace( '###USERNAME###', $current_user->user_login, $content ); 369 374 370 375 wp_mail( $_POST['email'], sprintf( __( '[%s] New Email Address' ), wp_specialchars_decode( get_option( 'blogname' ) ) ), $content ); 371 376 $_POST['email'] = $current_user->user_email;