Make WordPress Core

Ticket #34297: 34297.2.patch

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

    diff --git a/src/wp-includes/pluggable.php b/src/wp-includes/pluggable.php
    index d7713b7..3443867 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 *
    22082210 * For integration with other applications, this function can be overwritten to
    22092211 * instead use the other package password checking algorithm.
    22102212 *
  • src/wp-includes/user.php

    diff --git a/src/wp-includes/user.php b/src/wp-includes/user.php
    index a83e57e..e087527 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 *
    1618 * The various authentication cookies will be set by this function and will be
    1719 * set for a longer period depending on if the 'remember' credential is set to
    1820 * true.
    function wp_insert_user( $userdata ) { 
    17141716 * Update a user in the database.
    17151717 *
    17161718 * It is possible to update a user's password by specifying the 'user_pass'
    1717  * value in the $userdata parameter array.
     1719 * value in the $userdata parameter array. The 'user_pass' value must first be sanitized with wp_slash().
    17181720 *
    17191721 * If current user's password is being updated, then the cookies will be
    17201722 * cleared.