Ticket #31217: 31217.diff
| File 31217.diff, 5.0 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: … … 351 354 * 352 355 * The following strings have a special meaning and will get replaced dynamically: 353 356 * ###ADMIN_URL### The link to click on to confirm the email change. Required otherwise this functunalty is will break. 354 * ###EMAIL### The new email. 355 * ###SITENAME### The name of the site. 356 * ###SITEURL### The URL to the site. 357 * ###EMAIL### The new email. 358 * ###SITENAME### The name of the site. 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; -
wp-admin/includes/schema.php
917 917 $site_admins = get_site_option( 'site_admins' ); 918 918 } 919 919 920 $welcome_email = __( ' Dear User,920 $welcome_email = __( 'Howdy USERNAME, 921 921 922 922 Your new SITE_NAME site has been successfully set up at: 923 923 BLOG_URL -
wp-admin/ms-delete-site.php
26 26 } 27 27 28 28 $blog = get_blog_details(); 29 $user = wp_get_current_user(); 29 30 30 31 $title = __( 'Delete Site' ); 31 32 $parent_file = 'tools.php'; … … 42 43 43 44 $url_delete = esc_url( admin_url( 'ms-delete-site.php?h=' . $hash ) ); 44 45 45 $content = __( "Dear User, 46 $content = __( "Howdy ###USERNAME###, 47 46 48 You recently clicked the 'Delete Site' link on your site and filled in a 47 49 form on that page. 50 48 51 If you really want to delete your site, click the link below. You will not 49 52 be asked to confirm again so only click this link if you are absolutely certain: 50 53 ###URL_DELETE### … … 55 58 56 59 Thanks for using the site, 57 60 Webmaster 61 58 62 ###SITE_NAME###" ); 59 63 /** 60 64 * Filter the email content sent when a site in a Multisite network is deleted. … … 67 71 68 72 $content = str_replace( '###URL_DELETE###', $url_delete, $content ); 69 73 $content = str_replace( '###SITE_NAME###', $current_site->site_name, $content ); 74 $content = str_replace( '###USERNAME###', $user->user_login, $content ); 70 75 71 76 wp_mail( get_option( 'admin_email' ), "[ " . wp_specialchars_decode( get_option( 'blogname' ) ) . " ] ".__( 'Delete My Site' ), $content ); 72 77 ?> -
wp-includes/ms-functions.php
1434 1434 1435 1435 $welcome_email = get_site_option( 'welcome_email' ); 1436 1436 if ( $welcome_email == false ) 1437 $welcome_email = __( ' Dear User,1437 $welcome_email = __( 'Howdy USERNAME, 1438 1438 1439 1439 Your new SITE_NAME site has been successfully set up at: 1440 1440 BLOG_URL … … 2080 2080 function welcome_user_msg_filter( $text ) { 2081 2081 if ( !$text ) { 2082 2082 remove_filter( 'site_option_welcome_user_email', 'welcome_user_msg_filter' ); 2083 $text = __( ' Dear User,2083 $text = __( 'Howdy USERNAME, 2084 2084 2085 2085 Your new account is set up. 2086 2086