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. Built from https://develop.svn.wordpress.org/trunk@28792 git-svn-id: http://core.svn.wordpress.org/trunk@28605 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
269bd96f65
commit
6997001d12
|
@ -25,10 +25,9 @@ if ( force_ssl_admin() && ! is_ssl() ) {
|
||||||
/**
|
/**
|
||||||
* Output the login page header.
|
* Output the login page header.
|
||||||
*
|
*
|
||||||
* @param string $title Optional. WordPress Log In Page title to display in <title/> element. Default 'Log In'.
|
* @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 $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. The error to pass. Default empty.
|
||||||
* @param WP_Error $wp_error Optional. WordPress Error Object
|
|
||||||
*/
|
*/
|
||||||
function login_header( $title = 'Log In', $message = '', $wp_error = '' ) {
|
function login_header( $title = 'Log In', $message = '', $wp_error = '' ) {
|
||||||
global $error, $interim_login, $action;
|
global $error, $interim_login, $action;
|
||||||
|
|
Loading…
Reference in New Issue