Make WordPress Core

Changeset 59027


Ignore:
Timestamp:
09/17/2024 12:01:09 AM (3 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.

Location:
trunk/src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/install.php

    r57286 r59027  
    6868<html <?php language_attributes(); ?>>
    6969<head>
    70     <meta name="viewport" content="width=device-width" />
     70    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    7171    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    7272    <meta name="robots" content="noindex,nofollow" />
  • trunk/src/wp-admin/maint/repair.php

    r56552 r59027  
    1515<html <?php language_attributes(); ?>>
    1616<head>
    17     <meta name="viewport" content="width=device-width" />
     17    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    1818    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    1919    <meta name="robots" content="noindex,nofollow" />
  • trunk/src/wp-admin/setup-config.php

    r57926 r59027  
    106106<html<?php echo $dir_attr; ?>>
    107107<head>
    108     <meta name="viewport" content="width=device-width" />
     108    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    109109    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    110110    <meta name="robots" content="noindex,nofollow" />
  • trunk/src/wp-admin/upgrade.php

    r56473 r59027  
    6060<html <?php language_attributes(); ?>>
    6161<head>
    62     <meta name="viewport" content="width=device-width" />
     62    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    6363    <meta http-equiv="Content-Type" content="<?php bloginfo( 'html_type' ); ?>; charset=<?php echo get_option( 'blog_charset' ); ?>" />
    6464    <meta name="robots" content="noindex,nofollow" />
  • 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' ) ) {
  • 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.