WordPress.org

Make WordPress Core

Changeset 13546


Ignore:
Timestamp:
03/02/2010 11:39:08 AM (8 years ago)
Author:
dd32
Message:

use return_false in preference to create_function(..return true..). Props TobiasBg. See #12435

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/user-new.php

    r13445 r13546  
    8585                $new_user_login = apply_filters('pre_user_login', sanitize_user(stripslashes($_REQUEST['user_login']), true));
    8686                if ( isset( $_POST[ 'noconfirmation' ] ) && is_super_admin() ) {
    87                     add_filter( 'wpmu_signup_user_notification', create_function('', '{return false;}') ); // Disable confirmation email
     87                    add_filter( 'wpmu_signup_user_notification', '__return_false' ); // Disable confirmation email
    8888                }
    8989                wpmu_signup_user( $new_user_login, $_REQUEST[ 'email' ], array( 'add_to_blog' => $wpdb->blogid, 'new_role' => $_REQUEST[ 'role' ] ) );
Note: See TracChangeset for help on using the changeset viewer.