Ticket #20116: 20116.3.patch
| File 20116.3.patch, 2.7 KB (added by , 14 years ago) |
|---|
-
wp-admin/includes/schema.php
894 894 'illegal_names' => array( 'www', 'web', 'root', 'admin', 'main', 'invite', 'administrator', 'files' ), 895 895 'wpmu_upgrade_site' => $wp_db_version, 896 896 'welcome_email' => $welcome_email, 897 'welcome_user_email' => welcome_user_msg_filter(), 897 898 'first_post' => __( 'Welcome to <a href="SITE_URL">SITE_NAME</a>. This is your first post. Edit or delete it, then start blogging!' ), 898 899 // @todo - network admins should have a method of editing the network siteurl (used for cookie hash) 899 900 'siteurl' => get_option( 'siteurl' ) . '/', -
wp-admin/includes/upgrade.php
1306 1306 update_site_option( 'allowedthemes', $converted ); 1307 1307 delete_site_option( 'allowed_themes' ); 1308 1308 } 1309 1310 if ( false === get_site_option( 'welcome_user_email' ) ) 1311 update_site_option( 'welcome_user_email', welcome_user_msg_filter() ); 1309 1312 } 1310 1313 } 1311 1314 -
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 = welcome_user_msg_filter(); 1283 1285 1284 1286 $user = new WP_User($user_id); 1285 1287 … … 1885 1887 add_filter('option_users_can_register', 'users_can_register_signup_filter'); 1886 1888 1887 1889 /** 1888 * Ensure that the welcome message is not empty. Currently unused.1890 * Ensure that the welcome message is not empty. 1889 1891 * 1890 1892 * @since MU 1891 1893 * 1892 1894 * @param string $text 1893 1895 * @return string 1894 1896 */ 1895 function welcome_user_msg_filter( $text ) {1897 function welcome_user_msg_filter( $text = false ) { 1896 1898 if ( !$text ) { 1897 1899 return __( 'Dear User, 1898 1900 … … 1909 1911 } 1910 1912 return $text; 1911 1913 } 1912 add_filter( 'site_option_welcome_user_email', 'welcome_user_msg_filter' );1913 1914 1914 1915 /** 1915 1916 * Whether to force SSL on content.