mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 17:48:01 +01:00
Login and Registration: Prevent the enable_login_autofocus
filter DocBlock from spilling into JS code.
Props chris@vendiadvertising.com. Fixes #41176. Built from https://develop.svn.wordpress.org/trunk@40954 git-svn-id: http://core.svn.wordpress.org/trunk@40804 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5650910c50
commit
62947553c5
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.9-alpha-40953';
|
||||
$wp_version = '4.9-alpha-40954';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
@ -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