Make WordPress Core

Ticket #44052: 44052.3.2.diff

File 44052.3.2.diff, 1.5 KB (added by sebastien@…, 6 years ago)
  • wp-login.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    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 null.
    3232 */
    33 function login_header( $title = 'Log In', $message = '', $wp_error = '' ) {
     33function login_header( $title = 'Log In', $message = '', $wp_error = null ) {
    3434        global $error, $interim_login, $action;
    3535
    3636        // Don't index any of these forms
     
    3838
    3939        add_action( 'login_head', 'wp_login_viewport_meta' );
    4040
     41        if ( empty( $wp_error ) ) {
    4142        if ( ! is_wp_error( $wp_error ) ) {
    4243                $wp_error = new WP_Error();
    4344        }
    4445
     46
     47
    4548        // Shake it!
    4649        $shake_error_codes = array( 'empty_password', 'empty_email', 'invalid_email', 'invalidcombo', 'empty_username', 'invalid_username', 'incorrect_password' );
    4750        /**