WordPress.org

Make WordPress Core

Ticket #40301: 40301.diff

File 40301.diff, 778 bytes (added by afercia, 3 years ago)
  • src/wp-login.php

     
    358358
    359359        /**
    360360         * Filters the message body of the password reset mail.
    361          * 
     361         *
    362362         * If the filtered message is empty, the password reset email will not be sent.
    363363         *
    364364         * @since 2.8.0
     
    963963}, 200);
    964964}
    965965
    966 <?php if ( !$error ) { ?>
     966/**
     967 * Filters whether to print the call to `wp_attempt_focus()` on the login screen.
     968 *
     969 * @since 4.8.0
     970 *
     971 * @param bool $print Whether to print the function call. Default true.
     972 */
     973<?php if ( apply_filters( 'enable_login_autofocus', true ) && ! $error ) { ?>
    967974wp_attempt_focus();
    968975<?php } ?>
    969976if(typeof wpOnload=='function')wpOnload();