Changeset 45822
- Timestamp:
- 08/17/2019 01:22:26 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pluggable.php
r45778 r45822 593 593 * @global int $login_grace_period 594 594 * 595 * @param string $cookie Optional. If used, will validate contents instead of cookie's 596 * @param string $scheme Optional. The cookie scheme to use: auth, secure_auth, or logged_in597 * @return false|int False if invalid cookie, User ID if valid.595 * @param string $cookie Optional. If used, will validate contents instead of cookie's. 596 * @param string $scheme Optional. The cookie scheme to use: 'auth', 'secure_auth', or 'logged_in'. 597 * @return false|int False if invalid cookie, user ID if valid. 598 598 */ 599 599 function wp_validate_auth_cookie( $cookie = '', $scheme = '' ) { … … 698 698 if ( ! function_exists( 'wp_generate_auth_cookie' ) ) : 699 699 /** 700 * Generate authentication cookie contents.700 * Generates authentication cookie contents. 701 701 * 702 702 * @since 2.5.0 703 703 * @since 4.0.0 The `$token` parameter was added. 704 704 * 705 * @param int $user_id User ID 705 * @param int $user_id User ID. 706 706 * @param int $expiration The time the cookie expires as a UNIX timestamp. 707 * @param string $scheme Optional. The cookie scheme to use: auth, secure_auth, or logged_in 708 * @param string $token User's session token to use for this cookie 707 * @param string $scheme Optional. The cookie scheme to use: 'auth', 'secure_auth', or 'logged_in'. 708 * Default 'auth'. 709 * @param string $token User's session token to use for this cookie. 709 710 * @return string Authentication cookie contents. Empty string if user does not exist. 710 711 */ … … 748 749 if ( ! function_exists( 'wp_parse_auth_cookie' ) ) : 749 750 /** 750 * Parse a cookie into its components751 * Parses a cookie into its components. 751 752 * 752 753 * @since 2.7.0 753 754 * 754 * @param string $cookie 755 * @param string $scheme Optional. The cookie scheme to use: auth, secure_auth, or logged_in756 * @return array|false Authentication cookie components 755 * @param string $cookie Authentication cookie. 756 * @param string $scheme Optional. The cookie scheme to use: 'auth', 'secure_auth', or 'logged_in'. 757 * @return array|false Authentication cookie components. 757 758 */ 758 759 function wp_parse_auth_cookie( $cookie = '', $scheme = '' ) { … … 797 798 if ( ! function_exists( 'wp_set_auth_cookie' ) ) : 798 799 /** 799 * Log in a user by setting authentication cookies.800 * Sets the authentication cookies based on user ID. 800 801 * 801 802 * The $remember parameter increases the time that the cookie will be kept. The … … 806 807 * @since 4.3.0 Added the `$token` parameter. 807 808 * 808 * @param int $user_id User ID 809 * @param bool $remember Whether to remember the user 809 * @param int $user_id User ID. 810 * @param bool $remember Whether to remember the user. 810 811 * @param mixed $secure Whether the admin cookies should only be sent over HTTPS. 811 * Default is _ssl().812 * Default is the value of is_ssl(). 812 813 * @param string $token Optional. User's session token to use for this cookie. 813 814 */
Note: See TracChangeset
for help on using the changeset viewer.