mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Docs: Various fixes in wp-includes/pluggable.php
docblocks, as per documentation standards.
See #55646. Built from https://develop.svn.wordpress.org/trunk@53472 git-svn-id: http://core.svn.wordpress.org/trunk@53061 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
312f7d4b76
commit
0ab9c4ee4b
@ -53,7 +53,7 @@ endif;
|
||||
|
||||
if ( ! function_exists( 'wp_get_current_user' ) ) :
|
||||
/**
|
||||
* Retrieve the current user object.
|
||||
* Retrieves the current user object.
|
||||
*
|
||||
* Will set the current user, if the current user is not set. The current user
|
||||
* will be set to the logged-in person. If no user is logged-in, then it will
|
||||
@ -73,7 +73,7 @@ endif;
|
||||
|
||||
if ( ! function_exists( 'get_userdata' ) ) :
|
||||
/**
|
||||
* Retrieve user info by user ID.
|
||||
* Retrieves user info by user ID.
|
||||
*
|
||||
* @since 0.71
|
||||
*
|
||||
@ -87,7 +87,7 @@ endif;
|
||||
|
||||
if ( ! function_exists( 'get_user_by' ) ) :
|
||||
/**
|
||||
* Retrieve user info by a given field
|
||||
* Retrieves user info by a given field.
|
||||
*
|
||||
* @since 2.8.0
|
||||
* @since 4.4.0 Added 'ID' as an alias of 'id' for the `$field` parameter.
|
||||
@ -121,7 +121,7 @@ endif;
|
||||
|
||||
if ( ! function_exists( 'cache_users' ) ) :
|
||||
/**
|
||||
* Retrieve info for user lists to prevent multiple queries by get_userdata()
|
||||
* Retrieves info for user lists to prevent multiple queries by get_userdata().
|
||||
*
|
||||
* @since 3.0.0
|
||||
*
|
||||
@ -589,7 +589,7 @@ endif;
|
||||
|
||||
if ( ! function_exists( 'wp_authenticate' ) ) :
|
||||
/**
|
||||
* Authenticate a user, confirming the login credentials are valid.
|
||||
* Authenticates a user, confirming the login credentials are valid.
|
||||
*
|
||||
* @since 2.5.0
|
||||
* @since 4.5.0 `$username` now accepts an email address.
|
||||
@ -615,7 +615,7 @@ if ( ! function_exists( 'wp_authenticate' ) ) :
|
||||
* @param null|WP_User|WP_Error $user WP_User if the user is authenticated.
|
||||
* WP_Error or null otherwise.
|
||||
* @param string $username Username or email address.
|
||||
* @param string $password User password
|
||||
* @param string $password User password.
|
||||
*/
|
||||
$user = apply_filters( 'authenticate', null, $username, $password );
|
||||
|
||||
@ -649,7 +649,7 @@ endif;
|
||||
|
||||
if ( ! function_exists( 'wp_logout' ) ) :
|
||||
/**
|
||||
* Log the current user out.
|
||||
* Logs the current user out.
|
||||
*
|
||||
* @since 2.5.0
|
||||
*/
|
||||
@ -1462,7 +1462,7 @@ if ( ! function_exists( 'wp_sanitize_redirect' ) ) :
|
||||
}
|
||||
|
||||
/**
|
||||
* URL encode UTF-8 characters in a URL.
|
||||
* URL encodes UTF-8 characters in a URL.
|
||||
*
|
||||
* @ignore
|
||||
* @since 4.2.0
|
||||
@ -1538,13 +1538,13 @@ if ( ! function_exists( 'wp_validate_redirect' ) ) :
|
||||
* path. A plugin can therefore set or remove allowed host(s) to or from the
|
||||
* list.
|
||||
*
|
||||
* If the host is not allowed, then the redirect is to $default supplied
|
||||
* If the host is not allowed, then the redirect is to $default supplied.
|
||||
*
|
||||
* @since 2.8.1
|
||||
*
|
||||
* @param string $location The redirect to validate
|
||||
* @param string $default The value to return if $location is not allowed
|
||||
* @return string redirect-sanitized URL
|
||||
* @param string $location The redirect to validate.
|
||||
* @param string $default The value to return if $location is not allowed.
|
||||
* @return string redirect-sanitized URL.
|
||||
*/
|
||||
function wp_validate_redirect( $location, $default = '' ) {
|
||||
$location = wp_sanitize_redirect( trim( $location, " \t\n\r\0\x08\x0B" ) );
|
||||
@ -1614,12 +1614,12 @@ endif;
|
||||
|
||||
if ( ! function_exists( 'wp_notify_postauthor' ) ) :
|
||||
/**
|
||||
* Notify an author (and/or others) of a comment/trackback/pingback on a post.
|
||||
* Notifies an author (and/or others) of a comment/trackback/pingback on a post.
|
||||
*
|
||||
* @since 1.0.0
|
||||
*
|
||||
* @param int|WP_Comment $comment_id Comment ID or WP_Comment object.
|
||||
* @param string $deprecated Not used
|
||||
* @param string $deprecated Not used.
|
||||
* @return bool True on completion. False if no email addresses were specified.
|
||||
*/
|
||||
function wp_notify_postauthor( $comment_id, $deprecated = null ) {
|
||||
@ -2027,7 +2027,7 @@ endif;
|
||||
|
||||
if ( ! function_exists( 'wp_password_change_notification' ) ) :
|
||||
/**
|
||||
* Notify the blog admin of a user changing password, normally via email.
|
||||
* Notifies the blog admin of a user changing password, normally via email.
|
||||
*
|
||||
* @since 2.7.0
|
||||
*
|
||||
@ -2081,7 +2081,7 @@ endif;
|
||||
|
||||
if ( ! function_exists( 'wp_new_user_notification' ) ) :
|
||||
/**
|
||||
* Email login credentials to a newly-registered user.
|
||||
* Emails login credentials to a newly-registered user.
|
||||
*
|
||||
* A new user registration notification is also sent to admin email.
|
||||
*
|
||||
@ -2314,7 +2314,7 @@ if ( ! function_exists( 'wp_create_nonce' ) ) :
|
||||
* and window of time.
|
||||
*
|
||||
* @since 2.0.3
|
||||
* @since 4.0.0 Session tokens were integrated with nonce creation
|
||||
* @since 4.0.0 Session tokens were integrated with nonce creation.
|
||||
*
|
||||
* @param string|int $action Scalar value to add context to the nonce.
|
||||
* @return string The token.
|
||||
@ -2364,7 +2364,7 @@ if ( ! function_exists( 'wp_salt' ) ) :
|
||||
*
|
||||
* @link https://api.wordpress.org/secret-key/1.1/salt/ Create secrets for wp-config.php
|
||||
*
|
||||
* @param string $scheme Authentication scheme (auth, secure_auth, logged_in, nonce)
|
||||
* @param string $scheme Authentication scheme (auth, secure_auth, logged_in, nonce).
|
||||
* @return string Salt value
|
||||
*/
|
||||
function wp_salt( $scheme = 'auth' ) {
|
||||
@ -2440,13 +2440,13 @@ endif;
|
||||
|
||||
if ( ! function_exists( 'wp_hash' ) ) :
|
||||
/**
|
||||
* Get hash of given string.
|
||||
* Gets hash of given string.
|
||||
*
|
||||
* @since 2.0.3
|
||||
*
|
||||
* @param string $data Plain text to hash
|
||||
* @param string $scheme Authentication scheme (auth, secure_auth, logged_in, nonce)
|
||||
* @return string Hash of $data
|
||||
* @param string $data Plain text to hash.
|
||||
* @param string $scheme Authentication scheme (auth, secure_auth, logged_in, nonce).
|
||||
* @return string Hash of $data.
|
||||
*/
|
||||
function wp_hash( $data, $scheme = 'auth' ) {
|
||||
$salt = wp_salt( $scheme );
|
||||
@ -2457,7 +2457,7 @@ endif;
|
||||
|
||||
if ( ! function_exists( 'wp_hash_password' ) ) :
|
||||
/**
|
||||
* Create a hash (encrypt) of a plain text password.
|
||||
* Creates a hash (encrypt) of a plain text password.
|
||||
*
|
||||
* For integration with other applications, this function can be overwritten to
|
||||
* instead use the other package password checking algorithm.
|
||||
@ -2466,8 +2466,8 @@ if ( ! function_exists( 'wp_hash_password' ) ) :
|
||||
*
|
||||
* @global PasswordHash $wp_hasher PHPass object
|
||||
*
|
||||
* @param string $password Plain text user password to hash
|
||||
* @return string The hash string of the password
|
||||
* @param string $password Plain text user password to hash.
|
||||
* @return string The hash string of the password.
|
||||
*/
|
||||
function wp_hash_password( $password ) {
|
||||
global $wp_hasher;
|
||||
@ -2497,13 +2497,13 @@ if ( ! function_exists( 'wp_check_password' ) ) :
|
||||
* @since 2.5.0
|
||||
*
|
||||
* @global PasswordHash $wp_hasher PHPass object used for checking the password
|
||||
* against the $hash + $password
|
||||
* against the $hash + $password.
|
||||
* @uses PasswordHash::CheckPassword
|
||||
*
|
||||
* @param string $password Plaintext user's password
|
||||
* @param string $password Plaintext user's password.
|
||||
* @param string $hash Hash of the user's password to check against.
|
||||
* @param string|int $user_id Optional. User ID.
|
||||
* @return bool False, if the $password does not match the hashed password
|
||||
* @return bool False, if the $password does not match the hashed password.
|
||||
*/
|
||||
function wp_check_password( $password, $hash, $user_id = '' ) {
|
||||
global $wp_hasher;
|
||||
@ -2599,9 +2599,9 @@ if ( ! function_exists( 'wp_rand' ) ) :
|
||||
*
|
||||
* @global string $rnd_value
|
||||
*
|
||||
* @param int $min Lower limit for the generated number
|
||||
* @param int $max Upper limit for the generated number
|
||||
* @return int A random number between min and max
|
||||
* @param int $min Lower limit for the generated number.
|
||||
* @param int $max Upper limit for the generated number.
|
||||
* @return int A random number between min and max.
|
||||
*/
|
||||
function wp_rand( $min = 0, $max = 0 ) {
|
||||
global $rnd_value;
|
||||
@ -2684,8 +2684,8 @@ if ( ! function_exists( 'wp_set_password' ) ) :
|
||||
*
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param string $password The plaintext new user password
|
||||
* @param int $user_id User ID
|
||||
* @param string $password The plaintext new user password.
|
||||
* @param int $user_id User ID.
|
||||
*/
|
||||
function wp_set_password( $password, $user_id ) {
|
||||
global $wpdb;
|
||||
@ -2706,7 +2706,7 @@ endif;
|
||||
|
||||
if ( ! function_exists( 'get_avatar' ) ) :
|
||||
/**
|
||||
* Retrieve the avatar `<img>` tag for a user, email address, MD5 hash, comment, or post.
|
||||
* Retrieves the avatar `<img>` tag for a user, email address, MD5 hash, comment, or post.
|
||||
*
|
||||
* @since 2.5.0
|
||||
* @since 4.2.0 Optional `$args` parameter added.
|
||||
@ -2887,8 +2887,8 @@ if ( ! function_exists( 'wp_text_diff' ) ) :
|
||||
* @uses Text_Diff
|
||||
* @uses WP_Text_Diff_Renderer_Table
|
||||
*
|
||||
* @param string $left_string "old" (left) version of string
|
||||
* @param string $right_string "new" (right) version of string
|
||||
* @param string $left_string "old" (left) version of string.
|
||||
* @param string $right_string "new" (right) version of string.
|
||||
* @param string|array $args {
|
||||
* Associative array of options to pass to WP_Text_Diff_Renderer_Table().
|
||||
*
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.1-alpha-53471';
|
||||
$wp_version = '6.1-alpha-53472';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user