WordPress.org

Make WordPress Core

Ticket #49639: 49639.patch

File 49639.patch, 420 bytes (added by tomjdevisser, 5 months ago)

Added the filter

  • src/wp-includes/user.php

    diff --git a/src/wp-includes/user.php b/src/wp-includes/user.php
    index 8a94526df2..434bef423c 100644
    a b function wp_insert_user( $userdata ) { 
    17761776        } else {
    17771777                $update = false;
    17781778                // Hash the password.
     1779                $pre_hash_password = apply_filters( 'pre_hash_password', $user_pass );
    17791780                $user_pass = wp_hash_password( $userdata['user_pass'] );
    17801781        }
    17811782