Make WordPress Core

Ticket #44052: 44052.2.diff

File 44052.2.diff, 1.2 KB (added by abdullahramzan, 7 years ago)
  • wp-login.php

    diff --git a/wp-login.php b/wp-login.php
    index e02208a..35d16f4 100644
    a b if ( force_ssl_admin() && ! is_ssl() ) { 
    2525/**
    2626 * Output the login page header.
    2727 *
    28  * @param string   $title    Optional. WordPress login Page title to display in the `<title>` element.
    29  *                           Default 'Log In'.
    30  * @param string   $message  Optional. Message to display in header. Default empty.
    31  * @param WP_Error $wp_error Optional. The error to pass. Default empty.
     28 * @param string            $title    Optional. WordPress login Page title to display in the `<title>` element.
     29 *                          Default 'Log In'.
     30 * @param string            $message  Optional. Message to display in header. Default empty.
     31 * @param string|WP_Error  $wp_error Optional. The error to pass. Default empty.
    3232 */
    3333function login_header( $title = 'Log In', $message = '', $wp_error = '' ) {
    3434        global $error, $interim_login, $action;
    function login_header( $title = 'Log In', $message = '', $wp_error = '' ) { 
    3838
    3939        add_action( 'login_head', 'wp_login_viewport_meta' );
    4040
    41         if ( empty( $wp_error ) ) {
     41        if ( ! is_wp_error( $wp_error ) ) {
    4242                $wp_error = new WP_Error();
    4343        }
    4444