Make WordPress Core

Changeset 20543


Ignore:
Timestamp:
04/19/2012 11:00:36 PM (13 years ago)
Author:
nacin
Message:

Rolling upgrade to set the welcome_user_email network-wide option via the welcome_user_msg_filter() callback. Fixes ability to save the welcome user email when no entry exists in the database. see #20116 for the 3.3 branch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3/wp-includes/ms-functions.php

    r19504 r20543  
    18971897function welcome_user_msg_filter( $text ) {
    18981898    if ( !$text ) {
    1899         return __( 'Dear User,
     1899        remove_filter( 'site_option_welcome_user_email', 'welcome_user_msg_filter' );
     1900        $text = __( 'Dear User,
    19001901
    19011902Your new account is set up.
     
    19091910
    19101911--The Team @ SITE_NAME' );
     1912        update_site_option( 'welcome_user_email', $text );
    19111913    }
    19121914    return $text;
Note: See TracChangeset for help on using the changeset viewer.