mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-28 23:27:39 +02:00
Login and Registration: Add a filter to disable the initial auto-focus on the login screen.
Fixes #40301. Built from https://develop.svn.wordpress.org/trunk@40652 git-svn-id: http://core.svn.wordpress.org/trunk@40515 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7328d561b1
commit
430422b0b7
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.8-alpha-40651';
|
$wp_version = '4.8-alpha-40652';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
@ -964,7 +964,14 @@ d.select();
|
|||||||
}, 200);
|
}, 200);
|
||||||
}
|
}
|
||||||
|
|
||||||
<?php if ( !$error ) { ?>
|
/**
|
||||||
|
* Filters whether to print the call to `wp_attempt_focus()` on the login screen.
|
||||||
|
*
|
||||||
|
* @since 4.8.0
|
||||||
|
*
|
||||||
|
* @param bool $print Whether to print the function call. Default true.
|
||||||
|
*/
|
||||||
|
<?php if ( apply_filters( 'enable_login_autofocus', true ) && ! $error ) { ?>
|
||||||
wp_attempt_focus();
|
wp_attempt_focus();
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
if(typeof wpOnload=='function')wpOnload();
|
if(typeof wpOnload=='function')wpOnload();
|
||||||
|
Loading…
Reference in New Issue
Block a user