Ticket #41190: wp-login.php.patch
File wp-login.php.patch, 974 bytes (added by , 8 years ago) |
---|
-
wp-login.php
945 945 <?php } ?> 946 946 947 947 <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 */ 956 if ( apply_filters( 'enable_login_autofocus', true ) && ! $error ) { ?> 948 957 function wp_attempt_focus(){ 949 958 setTimeout( function(){ try{ 950 959 <?php if ( $user_login ) { ?> … … 964 973 }, 200); 965 974 } 966 975 967 <?php968 /**969 * Filters whether to print the call to `wp_attempt_focus()` on the login screen.970 *971 * @since 4.8.0972 *973 * @param bool $print Whether to print the function call. Default true.974 */975 if ( apply_filters( 'enable_login_autofocus', true ) && ! $error ) { ?>976 976 wp_attempt_focus(); 977 977 <?php } ?> 978 978 if(typeof wpOnload=='function')wpOnload();