Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/wp-login.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
* @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.
*/
function login_header( $title = 'Log In', $message = '', $wp_error = null ) {
function login_header( $title = null, $message = '', $wp_error = null ) {
global $error, $interim_login, $action;

// Don't index any of these forms.
Expand All @@ -47,6 +47,10 @@ function login_header( $title = 'Log In', $message = '', $wp_error = null ) {

add_action( 'login_head', 'wp_login_viewport_meta' );

if ( null === $title ) {
$title = __( 'Log In' );
}

if ( ! is_wp_error( $wp_error ) ) {
$wp_error = new WP_Error();
}
Expand Down