WordPress.org

Make WordPress Core

Ticket #34889: plugable.diff

File plugable.diff, 464 bytes (added by adrianosilvaferreira, 5 years ago)
  • src/wp-includes/pluggable.php

     
    20742074function wp_check_password($password, $hash, $user_id = '') {
    20752075        global $wp_hasher;
    20762076
     2077        $password = trim( $password );
     2078       
    20772079        // If the hash is still md5...
    20782080        if ( strlen($hash) <= 32 ) {
    20792081                $check = hash_equals( $hash, md5( $password ) );