Make WordPress Core

Ticket #34297: 34297.patch

File 34297.patch, 1.5 KB (added by stevenlinx, 9 years ago)
  • src/wp-includes/pluggable.php

    diff --git a/src/wp-includes/pluggable.php b/src/wp-includes/pluggable.php
    index 3443867..d7713b7 100644
    a b if ( !function_exists('wp_set_password') ) : 
    22052205/**
    22062206 * Updates the user's password with a new encrypted one.
    22072207 *
    2208  * The $password value must first be sanitized with wp_slash().
    2209  *
    22102208 * For integration with other applications, this function can be overwritten to
    22112209 * instead use the other package password checking algorithm.
    22122210 *
  • src/wp-includes/user.php

    diff --git a/src/wp-includes/user.php b/src/wp-includes/user.php
    index b24ae08a..9ff6455 100644
    a b  
    1313 * 'remember' indices. If the credentials is not given, then the log in form
    1414 * will be assumed and used if set.
    1515 *
    16  * The 'user_password' value must first be sanitized with wp_slash().
    17  *
    1816 * The various authentication cookies will be set by this function and will be
    1917 * set for a longer period depending on if the 'remember' credential is set to
    2018 * true.
    function wp_insert_user( $userdata ) { 
    16981696 * Update a user in the database.
    16991697 *
    17001698 * It is possible to update a user's password by specifying the 'user_pass'
    1701  * value in the $userdata parameter array. The 'user_pass' value must first be sanitized with wp_slash().
     1699 * value in the $userdata parameter array.
    17021700 *
    17031701 * If current user's password is being updated, then the cookies will be
    17041702 * cleared.