mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-23 06:55:28 +00:00
Login and Registration: Detect JavaScript on the login screen.
This allows the login screen to be targeted with CSS when JavaScript is disabled. Props Nikschavan. Fixes #38088. Built from https://develop.svn.wordpress.org/trunk@46192 git-svn-id: http://core.svn.wordpress.org/trunk@46004 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6c931ed61a
commit
3bd9e18930
@ -13,7 +13,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.3-alpha-46191';
|
||||
$wp_version = '5.3-alpha-46192';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
@ -190,7 +190,10 @@ function login_header( $title = 'Log In', $message = '', $wp_error = null ) {
|
||||
|
||||
?>
|
||||
</head>
|
||||
<body class="login <?php echo esc_attr( implode( ' ', $classes ) ); ?>">
|
||||
<body class="login no-js <?php echo esc_attr( implode( ' ', $classes ) ); ?>">
|
||||
<script type="text/javascript">
|
||||
document.body.className = document.body.className.replace('no-js','js');
|
||||
</script>
|
||||
<?php
|
||||
/**
|
||||
* Fires in the login page header after the body tag is opened.
|
||||
|
Loading…
x
Reference in New Issue
Block a user