mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user