Don't annotate $wp_error
twice in login_header()
docs. $wp_error
is always expected to be of type WP_Error
.
Props SergeyBiryukov. Fixes #28518. git-svn-id: https://develop.svn.wordpress.org/trunk@28792 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
304f4f5ba9
commit
84fb91f383
@ -25,10 +25,9 @@ if ( force_ssl_admin() && ! is_ssl() ) {
|
||||
/**
|
||||
* Output the login page header.
|
||||
*
|
||||
* @param string $title Optional. WordPress Log In Page title to display in <title/> element. Default 'Log In'.
|
||||
* @param string $message Optional. Message to display in header. Default empty.
|
||||
* @param string $wp_error Optional. The error to pass. Default empty.
|
||||
* @param WP_Error $wp_error Optional. WordPress Error Object
|
||||
* @param string $title Optional. WordPress Log In Page title to display in <title> element. Default 'Log In'.
|
||||
* @param string $message Optional. Message to display in header. Default empty.
|
||||
* @param WP_Error $wp_error Optional. The error to pass. Default empty.
|
||||
*/
|
||||
function login_header( $title = 'Log In', $message = '', $wp_error = '' ) {
|
||||
global $error, $interim_login, $action;
|
||||
|
Loading…
Reference in New Issue
Block a user