Make WordPress Core


Ignore:
Timestamp:
09/17/2024 12:01:09 AM (8 weeks ago)
Author:
SergeyBiryukov
Message:

General: Add missing initial-scale value in viewport meta tags.

The viewport meta should include initial-scale=1.0 to ensure that high DPI/mobile display works as expected.

References:

Follow-up to [59026].

Props dhruvang21, sabernhardt, kkmuffme, mukesh27, narenin, swissspidy, SergeyBiryukov.
Fixes #61988.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-login.php

    r58623 r59027  
    463463function wp_login_viewport_meta() {
    464464    ?>
    465     <meta name="viewport" content="width=device-width" />
     465    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    466466    <?php
    467467}
Note: See TracChangeset for help on using the changeset viewer.