Make WordPress Core

Changeset 59026


Ignore:
Timestamp:
09/16/2024 10:16:46 PM (3 weeks ago)
Author:
SergeyBiryukov
Message:

Bundled Themes: Add missing initial-scale value in viewport meta tag.

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

Includes standardizing on 1.0 vs. 1 for consistency.

References:

Props dhruvang21, sabernhardt, kkmuffme, mukesh27, swissspidy, SergeyBiryukov.
See #61988.

Location:
trunk/src/wp-content/themes
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyeleven/header.php

    r58718 r59026  
    2424<head>
    2525<meta charset="<?php bloginfo( 'charset' ); ?>" />
    26 <meta name="viewport" content="width=device-width" />
     26<meta name="viewport" content="width=device-width, initial-scale=1.0" />
    2727<title>
    2828<?php
  • trunk/src/wp-content/themes/twentyfifteen/header.php

    r55981 r59026  
    1313<head>
    1414    <meta charset="<?php bloginfo( 'charset' ); ?>">
    15     <meta name="viewport" content="width=device-width">
     15    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    1616    <link rel="profile" href="https://gmpg.org/xfn/11">
    1717    <link rel="pingback" href="<?php echo esc_url( get_bloginfo( 'pingback_url' ) ); ?>">
  • trunk/src/wp-content/themes/twentyfourteen/header.php

    r56583 r59026  
    2121<head>
    2222    <meta charset="<?php bloginfo( 'charset' ); ?>">
    23     <meta name="viewport" content="width=device-width">
     23    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    2424    <title><?php wp_title( '|', true, 'right' ); ?></title>
    2525    <link rel="profile" href="https://gmpg.org/xfn/11">
  • trunk/src/wp-content/themes/twentynineteen/header.php

    r55276 r59026  
    1515<head>
    1616    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    17     <meta name="viewport" content="width=device-width, initial-scale=1" />
     17    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    1818    <link rel="profile" href="https://gmpg.org/xfn/11" />
    1919    <?php wp_head(); ?>
  • trunk/src/wp-content/themes/twentyseventeen/header.php

    r58206 r59026  
    1717<head>
    1818<meta charset="<?php bloginfo( 'charset' ); ?>">
    19 <meta name="viewport" content="width=device-width, initial-scale=1">
     19<meta name="viewport" content="width=device-width, initial-scale=1.0">
    2020<link rel="profile" href="https://gmpg.org/xfn/11">
    2121
  • trunk/src/wp-content/themes/twentysixteen/header.php

    r56583 r59026  
    1414<head>
    1515    <meta charset="<?php bloginfo( 'charset' ); ?>">
    16     <meta name="viewport" content="width=device-width, initial-scale=1">
     16    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    1717    <link rel="profile" href="https://gmpg.org/xfn/11">
    1818    <?php if ( is_singular() && pings_open( get_queried_object() ) ) : ?>
  • trunk/src/wp-content/themes/twentythirteen/header.php

    r55982 r59026  
    1313<head>
    1414    <meta charset="<?php bloginfo( 'charset' ); ?>">
    15     <meta name="viewport" content="width=device-width">
     15    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    1616    <title><?php wp_title( '|', true, 'right' ); ?></title>
    1717    <link rel="profile" href="https://gmpg.org/xfn/11">
  • trunk/src/wp-content/themes/twentytwelve/header.php

    r56583 r59026  
    2121<head>
    2222<meta charset="<?php bloginfo( 'charset' ); ?>" />
    23 <meta name="viewport" content="width=device-width" />
     23<meta name="viewport" content="width=device-width, initial-scale=1.0" />
    2424<title><?php wp_title( '|', true, 'right' ); ?></title>
    2525<link rel="profile" href="https://gmpg.org/xfn/11" />
  • trunk/src/wp-content/themes/twentytwenty/header.php

    r52013 r59026  
    1717
    1818        <meta charset="<?php bloginfo( 'charset' ); ?>">
    19         <meta name="viewport" content="width=device-width, initial-scale=1.0" >
     19        <meta name="viewport" content="width=device-width, initial-scale=1.0">
    2020
    2121        <link rel="profile" href="https://gmpg.org/xfn/11">
  • trunk/src/wp-content/themes/twentytwentyone/header.php

    r55276 r59026  
    1717<head>
    1818    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    19     <meta name="viewport" content="width=device-width, initial-scale=1" />
     19    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    2020    <?php wp_head(); ?>
    2121</head>
Note: See TracChangeset for help on using the changeset viewer.