WordPress.org

Make WordPress Core

Ticket #38088: 38088.diff

File 38088.diff, 589 bytes (added by Nikschavan, 3 years ago)
  • src/wp-login.php

    diff --git src/wp-login.php src/wp-login.php
    index 5266dd7..0ccbb29 100644
    function login_header( $title = 'Log In', $message = '', $wp_error = '' ) { 
    151151
    152152        ?>
    153153        </head>
    154         <body class="login <?php echo esc_attr( implode( ' ', $classes ) ); ?>">
     154        <body class="login no-js <?php echo esc_attr( implode( ' ', $classes ) ); ?>">
     155        <script type="text/javascript">
     156                document.body.className = document.body.className.replace('no-js','js');
     157        </script>
    155158        <?php
    156159        /**
    157160         * Fires in the login page header after the body tag is opened.