Make WordPress Core

Ticket #44293: 44293.3.diff

File 44293.3.diff, 555 bytes (added by cthreelabs, 6 years ago)

Corrections made based on input form @swissspidy, used WPCS linter hope the patch follows the recommended coding standard.

  • src/wp-includes/pluggable.php

    diff --git a/src/wp-includes/pluggable.php b/src/wp-includes/pluggable.php
    index cb06297b57..807c9edb0f 100644
    a b if ( ! function_exists( 'wp_new_user_notification' ) ) : 
    18921892                        _deprecated_argument( __FUNCTION__, '4.3.1' );
    18931893                }
    18941894
     1895                // Accepts only 'user', 'admin' , 'both' or default '' as $notify
     1896                if ( ! in_array( $notify, array( 'user', 'admin', 'both', '' ), true ) ) {
     1897                        return;
     1898                }
     1899
    18951900                global $wpdb, $wp_hasher;
    18961901                $user = get_userdata( $user_id );
    18971902