Ticket #20116: 20116.minimal.diff
File 20116.minimal.diff, 1.3 KB (added by , 9 years ago) |
---|
-
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); … … 1909 1922 } 1910 1923 return $text; 1911 1924 } 1912 add_filter( 'site_option_welcome_user_email', 'welcome_user_msg_filter' );1913 1925 1914 1926 /** 1915 1927 * Whether to force SSL on content.