Changeset 45926 for trunk/src/wp-includes/ms-functions.php
- Timestamp:
- 09/01/2019 05:12:43 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ms-functions.php
r45734 r45926 945 945 apply_filters( 946 946 'wpmu_signup_blog_notification_email', 947 /* translators: New site notification email. 1: Activation URL, 2: New site URL */ 947 948 __( "To activate your blog, please click the following link:\n\n%1\$s\n\nAfter you activate, you will receive *another email* with your login.\n\nAfter you activate, you can visit your site here:\n\n%2\$s" ), 948 949 $domain, … … 958 959 $key 959 960 ); 961 960 962 // TODO: Don't hard code activation link. 961 963 $subject = sprintf( … … 989 991 esc_url( 'http://' . $domain . $path ) 990 992 ); 993 991 994 wp_mail( $user_email, wp_specialchars_decode( $subject ), $message, $message_headers ); 992 995 … … 1061 1064 apply_filters( 1062 1065 'wpmu_signup_user_notification_email', 1066 /* translators: New user notification email. %s: Activation URL */ 1063 1067 __( "To activate your user, please click the following link:\n\n%s\n\nAfter you activate, you will receive *another email* with your login." ), 1064 1068 $user_login, … … 1069 1073 site_url( "wp-activate.php?key=$key" ) 1070 1074 ); 1075 1071 1076 // TODO: Don't hard code activation link. 1072 1077 $subject = sprintf( … … 1094 1099 $user_login 1095 1100 ); 1101 1096 1102 wp_mail( $user_email, wp_specialchars_decode( $subject ), $message, $message_headers ); 1097 1103 … … 1379 1385 restore_current_blog(); 1380 1386 1381 /* translators: New site notification email. 1: Site URL, 2: User IP address, 3: Settings screen URL */1382 1387 $msg = sprintf( 1388 /* translators: New site notification email. 1: Site URL, 2: User IP address, 3: Settings screen URL */ 1383 1389 __( 1384 1390 'New Site: %1$s … … 1403 1409 $msg = apply_filters( 'newblog_notify_siteadmin', $msg ); 1404 1410 1411 /* translators: New site notification email subject. %s: New site URL */ 1405 1412 wp_mail( $email, sprintf( __( 'New Site Registration: %s' ), $siteurl ), $msg ); 1413 1406 1414 return true; 1407 1415 } … … 1432 1440 1433 1441 $options_site_url = esc_url( network_admin_url( 'settings.php' ) ); 1434 /* translators: New user notification email. 1: User login, 2: User IP address, 3: Settings screen URL */ 1442 1435 1443 $msg = sprintf( 1444 /* translators: New user notification email. 1: User login, 2: User IP address, 3: Settings screen URL */ 1436 1445 __( 1437 1446 'New User: %1$s … … 1455 1464 */ 1456 1465 $msg = apply_filters( 'newuser_notify_siteadmin', $msg, $user ); 1466 1467 /* translators: New user notification email subject. %s: User login */ 1457 1468 wp_mail( $email, sprintf( __( 'New User Registration: %s' ), $user->user_login ), $msg ); 1469 1458 1470 return true; 1459 1471 } … … 1614 1626 */ 1615 1627 $subject = apply_filters( 'update_welcome_subject', sprintf( $subject, $current_network->site_name, wp_unslash( $title ) ) ); 1628 1616 1629 wp_mail( $user->user_email, wp_specialchars_decode( $subject ), $message, $message_headers ); 1617 1630 … … 1705 1718 */ 1706 1719 $subject = apply_filters( 'update_welcome_user_subject', sprintf( $subject, $current_network->site_name, $user->user_login ) ); 1720 1707 1721 wp_mail( $user->user_email, wp_specialchars_decode( $subject ), $message, $message_headers ); 1708 1722 … … 2076 2090 2077 2091 if ( empty( $details ) || is_wp_error( add_existing_user_to_blog( $details ) ) ) { 2078 wp_die( sprintf( __( 'An error occurred adding you to this site. Back to the <a href="%s">homepage</a>.' ), home_url() ) ); 2079 } 2080 2081 wp_die( sprintf( __( 'You have been added to this site. Please visit the <a href="%1$s">homepage</a> or <a href="%2$s">log in</a> using your username and password.' ), home_url(), admin_url() ), __( 'WordPress › Success' ), array( 'response' => 200 ) ); 2092 wp_die( 2093 sprintf( 2094 /* translators: %s: Home URL */ 2095 __( 'An error occurred adding you to this site. Back to the <a href="%s">homepage</a>.' ), 2096 home_url() 2097 ) 2098 ); 2099 } 2100 2101 wp_die( 2102 sprintf( 2103 /* translators: 1: Home URL, 2: Admin URL */ 2104 __( 'You have been added to this site. Please visit the <a href="%1$s">homepage</a> or <a href="%2$s">log in</a> using your username and password.' ), 2105 home_url(), 2106 admin_url() 2107 ), 2108 __( 'WordPress › Success' ), 2109 array( 'response' => 200 ) 2110 ); 2082 2111 } 2083 2112 … … 2652 2681 $content = str_replace( '###SITEURL###', network_home_url(), $content ); 2653 2682 2654 /* translators: Email change notification email subject. %s: Network title */ 2655 wp_mail( $value, sprintf( __( '[%s] Network Admin Email Change Request' ), wp_specialchars_decode( get_site_option( 'site_name' ), ENT_QUOTES ) ), $content ); 2683 wp_mail( 2684 $value, 2685 sprintf( 2686 /* translators: Email change notification email subject. %s: Network title */ 2687 __( '[%s] Network Admin Email Change Request' ), 2688 wp_specialchars_decode( get_site_option( 'site_name' ), ENT_QUOTES ) 2689 ), 2690 $content 2691 ); 2656 2692 2657 2693 if ( $switched_locale ) {
Note: See TracChangeset
for help on using the changeset viewer.