mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 23:00:21 +00:00
phpdoc corrections from jacobsantos. see #7918
git-svn-id: https://develop.svn.wordpress.org/trunk@9243 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -426,16 +426,16 @@ function wp_mail( $to, $subject, $message, $headers = '', $attachments = array()
|
||||
}
|
||||
endif;
|
||||
|
||||
if ( !function_exists('wp_authenticate') ) :
|
||||
/**
|
||||
* Checks a user's login information and logs them in if it checks out.
|
||||
*
|
||||
* @since 2.5
|
||||
* @since 2.5.0
|
||||
*
|
||||
* @param string $username User's username
|
||||
* @param string $password User's password
|
||||
* @return WP_Error|WP_User WP_User object if login successful, otherwise WP_Error object.
|
||||
*/
|
||||
if ( !function_exists('wp_authenticate') ) :
|
||||
function wp_authenticate($username, $password) {
|
||||
$username = sanitize_user($username);
|
||||
|
||||
@@ -467,12 +467,12 @@ function wp_authenticate($username, $password) {
|
||||
}
|
||||
endif;
|
||||
|
||||
if ( !function_exists('wp_logout') ) :
|
||||
/**
|
||||
* Log the current user out.
|
||||
*
|
||||
* @since 2.5
|
||||
* @since 2.5.0
|
||||
*/
|
||||
if ( !function_exists('wp_logout') ) :
|
||||
function wp_logout() {
|
||||
wp_clear_auth_cookie();
|
||||
do_action('wp_logout');
|
||||
|
||||
Reference in New Issue
Block a user