Make WordPress Core

Ticket #44052: 44052.patch

File 44052.patch, 891 bytes (added by spyderbytes, 6 years ago)
  • src/wp-login.php

     
    2828 * @param string   $title    Optional. WordPress login Page title to display in the `<title>` element.
    2929 *                           Default 'Log In'.
    3030 * @param string   $message  Optional. Message to display in header. Default empty.
    31  * @param WP_Error $wp_error Optional. The error to pass. Default empty.
     31 * @param WP_Error $wp_error Optional. The error to pass. Default is a new empty error.
    3232 */
    3333function login_header( $title = 'Log In', $message = '', $wp_error = '' ) {
    3434        global $error, $interim_login, $action;
     
    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