Make WordPress Core

Ticket #41190: wp-login.php.patch

File wp-login.php.patch, 974 bytes (added by ka2, 7 years ago)
  • wp-login.php

     
    945945<?php } ?>
    946946
    947947<script type="text/javascript">
     948<?php
     949/**
     950 * Filters whether to print the call to `wp_attempt_focus()` on the login screen.
     951 *
     952 * @since 4.8.0
     953 *
     954 * @param bool $print Whether to print the function call. Default true.
     955 */
     956if ( apply_filters( 'enable_login_autofocus', true ) && ! $error ) { ?>
    948957function wp_attempt_focus(){
    949958setTimeout( function(){ try{
    950959<?php if ( $user_login ) { ?>
     
    964973}, 200);
    965974}
    966975
    967 <?php
    968 /**
    969  * Filters whether to print the call to `wp_attempt_focus()` on the login screen.
    970  *
    971  * @since 4.8.0
    972  *
    973  * @param bool $print Whether to print the function call. Default true.
    974  */
    975 if ( apply_filters( 'enable_login_autofocus', true ) && ! $error ) { ?>
    976976wp_attempt_focus();
    977977<?php } ?>
    978978if(typeof wpOnload=='function')wpOnload();