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-includes/functions.php

    r58975 r59027  
    38693869<head>
    38703870    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $parsed_args['charset']; ?>" />
    3871     <meta name="viewport" content="width=device-width">
     3871    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    38723872        <?php
    38733873        if ( function_exists( 'wp_robots' ) && function_exists( 'wp_robots_no_robots' ) && function_exists( 'add_filter' ) ) {
Note: See TracChangeset for help on using the changeset viewer.