Make WordPress Core

Ticket #61993: 61993.1.0.diff

File 61993.1.0.diff, 6.3 KB (added by sabernhardt, 8 weeks ago)

uses 1.0 instead of 1 for each viewport meta tag

  • src/wp-content/themes/twentyeleven/header.php

     
    2323<!--<![endif]-->
    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
    2929        // Print the <title> tag based on what is being viewed.
  • src/wp-content/themes/twentyfifteen/header.php

     
    1212<html <?php language_attributes(); ?> class="no-js">
    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' ) ); ?>">
    1818        <?php wp_head(); ?>
  • src/wp-content/themes/twentyfourteen/header.php

     
    2020<!--<![endif]-->
    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">
    2626        <link rel="pingback" href="<?php echo esc_url( get_bloginfo( 'pingback_url' ) ); ?>">
  • src/wp-content/themes/twentynineteen/header.php

     
    1414<html <?php language_attributes(); ?>>
    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(); ?>
    2020</head>
  • src/wp-content/themes/twentyseventeen/header.php

     
    1616<html <?php language_attributes(); ?> class="no-js no-svg">
    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
    2222<?php wp_head(); ?>
  • src/wp-content/themes/twentysixteen/header.php

     
    1313<html <?php language_attributes(); ?> class="no-js">
    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() ) ) : ?>
    1919        <link rel="pingback" href="<?php echo esc_url( get_bloginfo( 'pingback_url' ) ); ?>">
  • src/wp-content/themes/twentythirteen/header.php

     
    1212<html <?php language_attributes(); ?>>
    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">
    1818        <link rel="pingback" href="<?php echo esc_url( get_bloginfo( 'pingback_url' ) ); ?>">
  • src/wp-content/themes/twentytwelve/header.php

     
    2020<!--<![endif]-->
    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" />
    2626<link rel="pingback" href="<?php echo esc_url( get_bloginfo( 'pingback_url' ) ); ?>">
  • src/wp-content/themes/twentytwenty/header.php

     
    1616        <head>
    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">
    2222
  • src/wp-content/themes/twentytwentyone/header.php

     
    1616<html <?php language_attributes(); ?> <?php twentytwentyone_the_html_classes(); ?>>
    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>
    2222