WordPress.org

Make WordPress Core

Ticket #20116: 20116.minimal.2.diff

File 20116.minimal.2.diff, 597 bytes (added by nacin, 2 years ago)
  • wp-includes/ms-functions.php

     
    18941894 */ 
    18951895function welcome_user_msg_filter( $text ) { 
    18961896        if ( !$text ) { 
    1897                 return __( 'Dear User, 
     1897                remove_filter( 'site_option_welcome_user_email', 'welcome_user_msg_filter' ); 
     1898                $text = __( 'Dear User, 
    18981899 
    18991900Your new account is set up. 
    19001901 
     
    19061907Thanks! 
    19071908 
    19081909--The Team @ SITE_NAME' ); 
     1910                update_site_option( 'welcome_user_email', $text ); 
    19091911        } 
    19101912        return $text; 
    19111913}