Login and Registration: Prevent the enable_login_autofocus
filter DocBlock from spilling into JS code.
Props chris@vendiadvertising.com. Fixes #41176. git-svn-id: https://develop.svn.wordpress.org/trunk@40954 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b5668c3527
commit
8ab52911d8
@ -964,6 +964,7 @@ d.select();
|
||||
}, 200);
|
||||
}
|
||||
|
||||
<?php
|
||||
/**
|
||||
* Filters whether to print the call to `wp_attempt_focus()` on the login screen.
|
||||
*
|
||||
@ -971,7 +972,7 @@ d.select();
|
||||
*
|
||||
* @param bool $print Whether to print the function call. Default true.
|
||||
*/
|
||||
<?php if ( apply_filters( 'enable_login_autofocus', true ) && ! $error ) { ?>
|
||||
if ( apply_filters( 'enable_login_autofocus', true ) && ! $error ) { ?>
|
||||
wp_attempt_focus();
|
||||
<?php } ?>
|
||||
if(typeof wpOnload=='function')wpOnload();
|
||||
|
Loading…
Reference in New Issue
Block a user