Make WordPress Core

Changeset 20697


Ignore:
Timestamp:
05/02/2012 08:31:37 PM (12 years ago)
Author:
ryan
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

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/wp-includes/ms-functions.php

    r20612 r20697  
    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.
     
    19071908
    19081909--The Team @ SITE_NAME' );
     1910        update_site_option( 'welcome_user_email', $text );
    19091911    }
    19101912    return $text;
Note: See TracChangeset for help on using the changeset viewer.