WordPress.org

Make WordPress Core

Changeset 20101


Ignore:
Timestamp:
03/02/12 23:52:19 (3 years ago)
Author:
nacin
Message:

Pass WP_User object to the newuser_notify_siteadmin filter. props boonebgorges. fixes #20162.

File:
1 edited

Legend:

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

    r19852 r20101  
    10431043 * 
    10441044 * @since MU 
     1045 * @uses apply_filters() Filter newuser_notify_siteadmin to change the content of the email message 
    10451046 * 
    10461047 * @param int $user_id The new user's ID. 
     
    10641065Disable these notifications: %3s'), $user->user_login, $_SERVER['REMOTE_ADDR'], $options_site_url); 
    10651066 
    1066     $msg = apply_filters( 'newuser_notify_siteadmin', $msg ); 
     1067    $msg = apply_filters( 'newuser_notify_siteadmin', $msg, $user ); 
    10671068    wp_mail( $email, sprintf(__('New User Registration: %s'), $user->user_login), $msg ); 
    10681069    return true; 
Note: See TracChangeset for help on using the changeset viewer.