Ticket #20116: 20116.2.patch
| File 20116.2.patch, 3.7 KB (added by , 14 years ago) |
|---|
-
wp-admin/includes/schema.php
881 881 882 882 --The Team @ SITE_NAME' ); 883 883 884 $welcome_user_email = __( 'Dear User, 885 886 Your new account is set up. 887 888 You can log in with the following information: 889 Username: USERNAME 890 Password: PASSWORD 891 LOGINLINK 892 893 Thanks! 894 895 --The Team @ SITE_NAME' ); 896 884 897 $sitemeta = array( 885 898 'site_name' => $site_name, 886 899 'admin_email' => $site_user->user_email, … … 894 907 'illegal_names' => array( 'www', 'web', 'root', 'admin', 'main', 'invite', 'administrator', 'files' ), 895 908 'wpmu_upgrade_site' => $wp_db_version, 896 909 'welcome_email' => $welcome_email, 910 'welcome_user_email' => $welcome_user_email, 897 911 'first_post' => __( 'Welcome to <a href="SITE_URL">SITE_NAME</a>. This is your first post. Edit or delete it, then start blogging!' ), 898 912 // @todo - network admins should have a method of editing the network siteurl (used for cookie hash) 899 913 'siteurl' => get_option( 'siteurl' ) . '/', -
wp-includes/ms-deprecated.php
270 270 } 271 271 return $url; 272 272 } 273 274 /** 275 * Ensure that the welcome message is not empty. Currently unused. 276 * 277 * @since MU 278 * @deprecated 3.4.0 279 * @deprecated Use get_site_option( 'welcome_user_email' ) 280 * 281 * @param string $text 282 * @return string 283 */ 284 function welcome_user_msg_filter( $text ) { 285 _deprecated_function( __FUNCTION__, '3.4', "get_site_option( 'welcome_user_email' )" ); 286 287 if ( !$text ) { 288 return __( 'Dear User, 289 290 Your new account is set up. 291 292 You can log in with the following information: 293 Username: USERNAME 294 Password: PASSWORD 295 LOGINLINK 296 297 Thanks! 298 299 --The Team @ SITE_NAME' ); 300 } 301 return $text; 302 } -
wp-includes/ms-functions.php
1216 1216 return false; 1217 1217 1218 1218 $welcome_email = stripslashes( get_site_option( 'welcome_email' ) ); 1219 if ( $welcome_email == false)1219 if ( false == $welcome_email ) 1220 1220 $welcome_email = stripslashes( __( 'Dear User, 1221 1221 1222 1222 Your new SITE_NAME site has been successfully set up at: … … 1279 1279 if ( !apply_filters('wpmu_welcome_user_notification', $user_id, $password, $meta) ) 1280 1280 return false; 1281 1281 1282 $welcome_email = get_site_option( 'welcome_user_email' ); 1282 $welcome_email = stripslashes( get_site_option( 'welcome_user_email' ) ); 1283 if ( false == $welcome_email ) 1284 $welcome_email = __( 'Dear User, 1283 1285 1286 Your new account is set up. 1287 1288 You can log in with the following information: 1289 Username: USERNAME 1290 Password: PASSWORD 1291 LOGINLINK 1292 1293 Thanks! 1294 1295 --The Team @ SITE_NAME' ); 1296 1284 1297 $user = new WP_User($user_id); 1285 1298 1286 1299 $welcome_email = apply_filters( 'update_welcome_user_email', $welcome_email, $user_id, $password, $meta); … … 1885 1898 add_filter('option_users_can_register', 'users_can_register_signup_filter'); 1886 1899 1887 1900 /** 1888 * Ensure that the welcome message is not empty. Currently unused.1889 *1890 * @since MU1891 *1892 * @param string $text1893 * @return string1894 */1895 function welcome_user_msg_filter( $text ) {1896 if ( !$text ) {1897 return __( 'Dear User,1898 1899 Your new account is set up.1900 1901 You can log in with the following information:1902 Username: USERNAME1903 Password: PASSWORD1904 LOGINLINK1905 1906 Thanks!1907 1908 --The Team @ SITE_NAME' );1909 }1910 return $text;1911 }1912 add_filter( 'site_option_welcome_user_email', 'welcome_user_msg_filter' );1913 1914 /**1915 1901 * Whether to force SSL on content. 1916 1902 * 1917 1903 * @since 2.8.5