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. git-svn-id: https://develop.svn.wordpress.org/trunk@46192 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
073469446b
commit
dd330aee33
@ -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