Ticket #20116: 20116.patch
| File 20116.patch, 2.9 KB (added by , 14 years ago) |
|---|
-
wp-admin/includes/schema.php
883 883 884 884 --The Team @ SITE_NAME' ); 885 885 886 $welcome_user_email = __( 'Dear User, 887 888 Your new account is set up. 889 890 You can log in with the following information: 891 Username: USERNAME 892 Password: PASSWORD 893 LOGINLINK 894 895 Thanks! 896 897 --The Team @ SITE_NAME' ); 898 886 899 $sitemeta = array( 887 900 'site_name' => $site_name, 888 901 'admin_email' => $site_user->user_email, … … 896 909 'illegal_names' => array( 'www', 'web', 'root', 'admin', 'main', 'invite', 'administrator', 'files' ), 897 910 'wpmu_upgrade_site' => $wp_db_version, 898 911 'welcome_email' => $welcome_email, 912 'welcome_user_email' => $welcome_user_email, 899 913 'first_post' => __( 'Welcome to <a href="SITE_URL">SITE_NAME</a>. This is your first post. Edit or delete it, then start blogging!' ), 900 914 // @todo - network admins should have a method of editing the network siteurl (used for cookie hash) 901 915 'siteurl' => get_option( 'siteurl' ) . '/', -
wp-includes/ms-functions.php
1214 1214 return false; 1215 1215 1216 1216 $welcome_email = stripslashes( get_site_option( 'welcome_email' ) ); 1217 if ( $welcome_email == false)1217 if ( false == $welcome_email ) 1218 1218 $welcome_email = stripslashes( __( 'Dear User, 1219 1219 1220 1220 Your new SITE_NAME site has been successfully set up at: … … 1277 1277 if ( !apply_filters('wpmu_welcome_user_notification', $user_id, $password, $meta) ) 1278 1278 return false; 1279 1279 1280 $welcome_email = get_site_option( 'welcome_user_email' ); 1280 $welcome_email = stripslashes( get_site_option( 'welcome_user_email' ) ); 1281 if ( false == $welcome_email ) 1282 $welcome_email = __( 'Dear User, 1281 1283 1284 Your new account is set up. 1285 1286 You can log in with the following information: 1287 Username: USERNAME 1288 Password: PASSWORD 1289 LOGINLINK 1290 1291 Thanks! 1292 1293 --The Team @ SITE_NAME' ); 1294 1282 1295 $user = new WP_User($user_id); 1283 1296 1284 1297 $welcome_email = apply_filters( 'update_welcome_user_email', $welcome_email, $user_id, $password, $meta); … … 1883 1896 add_filter('option_users_can_register', 'users_can_register_signup_filter'); 1884 1897 1885 1898 /** 1886 * Ensure that the welcome message is not empty. Currently unused.1887 *1888 * @since MU1889 *1890 * @param string $text1891 * @return string1892 */1893 function welcome_user_msg_filter( $text ) {1894 if ( !$text ) {1895 return __( 'Dear User,1896 1897 Your new account is set up.1898 1899 You can log in with the following information:1900 Username: USERNAME1901 Password: PASSWORD1902 LOGINLINK1903 1904 Thanks!1905 1906 --The Team @ SITE_NAME' );1907 }1908 return $text;1909 }1910 add_filter( 'site_option_welcome_user_email', 'welcome_user_msg_filter' );1911 1912 /**1913 1899 * Whether to force SSL on content. 1914 1900 * 1915 1901 * @since 2.8.5