Make WordPress Core

Ticket #20116: 20116.patch

File 20116.patch, 2.9 KB (added by SergeyBiryukov, 14 years ago)
  • wp-admin/includes/schema.php

     
    883883
    884884--The Team @ SITE_NAME' );
    885885
     886        $welcome_user_email = __( 'Dear User,
     887
     888Your new account is set up.
     889
     890You can log in with the following information:
     891Username: USERNAME
     892Password: PASSWORD
     893LOGINLINK
     894
     895Thanks!
     896
     897--The Team @ SITE_NAME' );
     898
    886899        $sitemeta = array(
    887900                'site_name' => $site_name,
    888901                'admin_email' => $site_user->user_email,
     
    896909                'illegal_names' => array( 'www', 'web', 'root', 'admin', 'main', 'invite', 'administrator', 'files' ),
    897910                'wpmu_upgrade_site' => $wp_db_version,
    898911                'welcome_email' => $welcome_email,
     912                'welcome_user_email' => $welcome_user_email,
    899913                'first_post' => __( 'Welcome to <a href="SITE_URL">SITE_NAME</a>. This is your first post. Edit or delete it, then start blogging!' ),
    900914                // @todo - network admins should have a method of editing the network siteurl (used for cookie hash)
    901915                'siteurl' => get_option( 'siteurl' ) . '/',
  • wp-includes/ms-functions.php

     
    12141214                return false;
    12151215
    12161216        $welcome_email = stripslashes( get_site_option( 'welcome_email' ) );
    1217         if ( $welcome_email == false )
     1217        if ( false == $welcome_email )
    12181218                $welcome_email = stripslashes( __( 'Dear User,
    12191219
    12201220Your new SITE_NAME site has been successfully set up at:
     
    12771277        if ( !apply_filters('wpmu_welcome_user_notification', $user_id, $password, $meta) )
    12781278                return false;
    12791279
    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,
    12811283
     1284Your new account is set up.
     1285
     1286You can log in with the following information:
     1287Username: USERNAME
     1288Password: PASSWORD
     1289LOGINLINK
     1290
     1291Thanks!
     1292
     1293--The Team @ SITE_NAME' );
     1294
    12821295        $user = new WP_User($user_id);
    12831296
    12841297        $welcome_email = apply_filters( 'update_welcome_user_email', $welcome_email, $user_id, $password, $meta);
     
    18831896add_filter('option_users_can_register', 'users_can_register_signup_filter');
    18841897
    18851898/**
    1886  * Ensure that the welcome message is not empty. Currently unused.
    1887  *
    1888  * @since MU
    1889  *
    1890  * @param string $text
    1891  * @return string
    1892  */
    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: USERNAME
    1901 Password: PASSWORD
    1902 LOGINLINK
    1903 
    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 /**
    19131899 * Whether to force SSL on content.
    19141900 *
    19151901 * @since 2.8.5