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
|
* @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.
|
* 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>
|
</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
|
<?php
|
||||||
/**
|
/**
|
||||||
* Fires in the login page header after the body tag is opened.
|
* Fires in the login page header after the body tag is opened.
|
||||||
|
Loading…
Reference in New Issue
Block a user