Make WordPress Core


Ignore:
Timestamp:
08/04/2015 11:38:52 AM (9 years ago)
Author:
ocean90
Message:

Multisite mails: Initialize $current_user before accessing $current_user->user_login.

props Toro_Unit.
see #31217.
fixes #33254.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/ms.php

    r33143 r33569  
    299299    $content = apply_filters( 'new_admin_email_content', $email_text, $new_admin_email );
    300300
     301    $current_user = wp_get_current_user();
    301302    $content = str_replace( '###USERNAME###', $current_user->user_login, $content );
    302303    $content = str_replace( '###ADMIN_URL###', esc_url( admin_url( 'options.php?adminhash='.$hash ) ), $content );
Note: See TracChangeset for help on using the changeset viewer.