Skip to content

Commit

Permalink
Docs: Clarify that the $wp_error parameter of login_header() is n…
Browse files Browse the repository at this point in the history
…ullable.

Follow-up to [7991], [25701], [28792], [43457], [58209], [58220].

See #60668, #60699.

git-svn-id: https://develop.svn.wordpress.org/trunk@58224 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed May 28, 2024
1 parent 647f285 commit f4165ae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/wp-login.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@
* upon successful login.
* @global string $action The action that brought the visitor to the login page.
*
* @param null|string $title Optional. WordPress login Page title to display in the `<title>` element.
* Default null, which displays 'Log In'.
* @param string $message Optional. Message to display in header. Default empty.
* @param WP_Error $wp_error Optional. The error to pass. Default is a WP_Error instance.
* @param string|null $title Optional. WordPress login page title to display in the `<title>` element.
* Defaults to 'Log In'.
* @param string $message Optional. Message to display in header. Default empty.
* @param WP_Error|null $wp_error Optional. The error to pass. Defaults to a WP_Error instance.
*/
function login_header( $title = null, $message = '', $wp_error = null ) {
global $error, $interim_login, $action;
Expand Down

0 comments on commit f4165ae

Please sign in to comment.