Changeset 53472
- Timestamp:
- 06/06/2022 10:33:15 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pluggable.php
r53458 r53472 54 54 if ( ! function_exists( 'wp_get_current_user' ) ) : 55 55 /** 56 * Retrieve the current user object.56 * Retrieves the current user object. 57 57 * 58 58 * Will set the current user, if the current user is not set. The current user … … 74 74 if ( ! function_exists( 'get_userdata' ) ) : 75 75 /** 76 * Retrieve user info by user ID.76 * Retrieves user info by user ID. 77 77 * 78 78 * @since 0.71 … … 88 88 if ( ! function_exists( 'get_user_by' ) ) : 89 89 /** 90 * Retrieve user info by a given field90 * Retrieves user info by a given field. 91 91 * 92 92 * @since 2.8.0 … … 122 122 if ( ! function_exists( 'cache_users' ) ) : 123 123 /** 124 * Retrieve info for user lists to prevent multiple queries by get_userdata()124 * Retrieves info for user lists to prevent multiple queries by get_userdata(). 125 125 * 126 126 * @since 3.0.0 … … 590 590 if ( ! function_exists( 'wp_authenticate' ) ) : 591 591 /** 592 * Authenticate a user, confirming the login credentials are valid.592 * Authenticates a user, confirming the login credentials are valid. 593 593 * 594 594 * @since 2.5.0 … … 616 616 * WP_Error or null otherwise. 617 617 * @param string $username Username or email address. 618 * @param string $password User password 618 * @param string $password User password. 619 619 */ 620 620 $user = apply_filters( 'authenticate', null, $username, $password ); … … 650 650 if ( ! function_exists( 'wp_logout' ) ) : 651 651 /** 652 * Log the current user out.652 * Logs the current user out. 653 653 * 654 654 * @since 2.5.0 … … 1463 1463 1464 1464 /** 1465 * URL encode UTF-8 characters in a URL.1465 * URL encodes UTF-8 characters in a URL. 1466 1466 * 1467 1467 * @ignore … … 1539 1539 * list. 1540 1540 * 1541 * If the host is not allowed, then the redirect is to $default supplied 1541 * If the host is not allowed, then the redirect is to $default supplied. 1542 1542 * 1543 1543 * @since 2.8.1 1544 1544 * 1545 * @param string $location The redirect to validate 1546 * @param string $default The value to return if $location is not allowed 1547 * @return string redirect-sanitized URL 1545 * @param string $location The redirect to validate. 1546 * @param string $default The value to return if $location is not allowed. 1547 * @return string redirect-sanitized URL. 1548 1548 */ 1549 1549 function wp_validate_redirect( $location, $default = '' ) { … … 1615 1615 if ( ! function_exists( 'wp_notify_postauthor' ) ) : 1616 1616 /** 1617 * Notif yan author (and/or others) of a comment/trackback/pingback on a post.1617 * Notifies an author (and/or others) of a comment/trackback/pingback on a post. 1618 1618 * 1619 1619 * @since 1.0.0 1620 1620 * 1621 1621 * @param int|WP_Comment $comment_id Comment ID or WP_Comment object. 1622 * @param string $deprecated Not used 1622 * @param string $deprecated Not used. 1623 1623 * @return bool True on completion. False if no email addresses were specified. 1624 1624 */ … … 2028 2028 if ( ! function_exists( 'wp_password_change_notification' ) ) : 2029 2029 /** 2030 * Notif ythe blog admin of a user changing password, normally via email.2030 * Notifies the blog admin of a user changing password, normally via email. 2031 2031 * 2032 2032 * @since 2.7.0 … … 2082 2082 if ( ! function_exists( 'wp_new_user_notification' ) ) : 2083 2083 /** 2084 * Email login credentials to a newly-registered user.2084 * Emails login credentials to a newly-registered user. 2085 2085 * 2086 2086 * A new user registration notification is also sent to admin email. … … 2315 2315 * 2316 2316 * @since 2.0.3 2317 * @since 4.0.0 Session tokens were integrated with nonce creation 2317 * @since 4.0.0 Session tokens were integrated with nonce creation. 2318 2318 * 2319 2319 * @param string|int $action Scalar value to add context to the nonce. … … 2365 2365 * @link https://api.wordpress.org/secret-key/1.1/salt/ Create secrets for wp-config.php 2366 2366 * 2367 * @param string $scheme Authentication scheme (auth, secure_auth, logged_in, nonce) 2367 * @param string $scheme Authentication scheme (auth, secure_auth, logged_in, nonce). 2368 2368 * @return string Salt value 2369 2369 */ … … 2441 2441 if ( ! function_exists( 'wp_hash' ) ) : 2442 2442 /** 2443 * Get hash of given string.2443 * Gets hash of given string. 2444 2444 * 2445 2445 * @since 2.0.3 2446 2446 * 2447 * @param string $data Plain text to hash 2448 * @param string $scheme Authentication scheme (auth, secure_auth, logged_in, nonce) 2449 * @return string Hash of $data 2447 * @param string $data Plain text to hash. 2448 * @param string $scheme Authentication scheme (auth, secure_auth, logged_in, nonce). 2449 * @return string Hash of $data. 2450 2450 */ 2451 2451 function wp_hash( $data, $scheme = 'auth' ) { … … 2458 2458 if ( ! function_exists( 'wp_hash_password' ) ) : 2459 2459 /** 2460 * Create a hash (encrypt) of a plain text password.2460 * Creates a hash (encrypt) of a plain text password. 2461 2461 * 2462 2462 * For integration with other applications, this function can be overwritten to … … 2467 2467 * @global PasswordHash $wp_hasher PHPass object 2468 2468 * 2469 * @param string $password Plain text user password to hash 2470 * @return string The hash string of the password 2469 * @param string $password Plain text user password to hash. 2470 * @return string The hash string of the password. 2471 2471 */ 2472 2472 function wp_hash_password( $password ) { … … 2498 2498 * 2499 2499 * @global PasswordHash $wp_hasher PHPass object used for checking the password 2500 * against the $hash + $password 2500 * against the $hash + $password. 2501 2501 * @uses PasswordHash::CheckPassword 2502 2502 * 2503 * @param string $password Plaintext user's password 2503 * @param string $password Plaintext user's password. 2504 2504 * @param string $hash Hash of the user's password to check against. 2505 2505 * @param string|int $user_id Optional. User ID. 2506 * @return bool False, if the $password does not match the hashed password 2506 * @return bool False, if the $password does not match the hashed password. 2507 2507 */ 2508 2508 function wp_check_password( $password, $hash, $user_id = '' ) { … … 2600 2600 * @global string $rnd_value 2601 2601 * 2602 * @param int $min Lower limit for the generated number 2603 * @param int $max Upper limit for the generated number 2604 * @return int A random number between min and max 2602 * @param int $min Lower limit for the generated number. 2603 * @param int $max Upper limit for the generated number. 2604 * @return int A random number between min and max. 2605 2605 */ 2606 2606 function wp_rand( $min = 0, $max = 0 ) { … … 2685 2685 * @global wpdb $wpdb WordPress database abstraction object. 2686 2686 * 2687 * @param string $password The plaintext new user password 2688 * @param int $user_id User ID 2687 * @param string $password The plaintext new user password. 2688 * @param int $user_id User ID. 2689 2689 */ 2690 2690 function wp_set_password( $password, $user_id ) { … … 2707 2707 if ( ! function_exists( 'get_avatar' ) ) : 2708 2708 /** 2709 * Retrieve the avatar `<img>` tag for a user, email address, MD5 hash, comment, or post.2709 * Retrieves the avatar `<img>` tag for a user, email address, MD5 hash, comment, or post. 2710 2710 * 2711 2711 * @since 2.5.0 … … 2888 2888 * @uses WP_Text_Diff_Renderer_Table 2889 2889 * 2890 * @param string $left_string "old" (left) version of string 2891 * @param string $right_string "new" (right) version of string 2890 * @param string $left_string "old" (left) version of string. 2891 * @param string $right_string "new" (right) version of string. 2892 2892 * @param string|array $args { 2893 2893 * Associative array of options to pass to WP_Text_Diff_Renderer_Table().
Note: See TracChangeset
for help on using the changeset viewer.