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:
Scott Taylor 2014-06-20 19:19:14 +00:00
parent 269bd96f65
commit 6997001d12
1 changed files with 3 additions and 4 deletions

View File

@ -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;