From 3cd067ee348a283ec97b5c36c27233adb7b1ba94 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 17 Sep 2024 00:03:54 +0000 Subject: [PATCH] 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: * [https://css-tricks.com/probably-use-initial-scale1/ CSS-Tricks: Probably Use initial-scale=1] * [https://www.sitepoint.com/community/t/is-it-necessary-to-include-initial-scale-1-0-in-the-meta-viewport-tag/455119 SitePoint Forums: Is it necessary to include initial-scale=1.0 in the meta viewport tag?] Follow-up to [59026]. Props dhruvang21, sabernhardt, kkmuffme, mukesh27, narenin, swissspidy, SergeyBiryukov. Fixes #61988. Built from https://develop.svn.wordpress.org/trunk@59027 git-svn-id: http://core.svn.wordpress.org/trunk@58423 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/install.php | 2 +- wp-admin/maint/repair.php | 2 +- wp-admin/setup-config.php | 2 +- wp-admin/upgrade.php | 2 +- wp-includes/functions.php | 2 +- wp-includes/version.php | 2 +- wp-login.php | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/wp-admin/install.php b/wp-admin/install.php index 34d5d4c7f7..e81331acfc 100644 --- a/wp-admin/install.php +++ b/wp-admin/install.php @@ -67,7 +67,7 @@ function display_header( $body_classes = '' ) { > - + <?php _e( 'WordPress › Installation' ); ?> diff --git a/wp-admin/maint/repair.php b/wp-admin/maint/repair.php index 1c0f6ffa98..2104ccd3ab 100644 --- a/wp-admin/maint/repair.php +++ b/wp-admin/maint/repair.php @@ -14,7 +14,7 @@ header( 'Content-Type: text/html; charset=utf-8' ); > - + <?php _e( 'WordPress › Database Repair' ); ?> diff --git a/wp-admin/setup-config.php b/wp-admin/setup-config.php index b394de8679..2d1ff715d3 100644 --- a/wp-admin/setup-config.php +++ b/wp-admin/setup-config.php @@ -105,7 +105,7 @@ function setup_config_display_header( $body_classes = array() ) { > - + <?php _e( 'WordPress › Setup Configuration File' ); ?> diff --git a/wp-admin/upgrade.php b/wp-admin/upgrade.php index 414fbb28d1..9edadd9be2 100644 --- a/wp-admin/upgrade.php +++ b/wp-admin/upgrade.php @@ -59,7 +59,7 @@ header( 'Content-Type: ' . get_option( 'html_type' ) . '; charset=' . get_option > - + <?php _e( 'WordPress › Update' ); ?> diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 0619f44f30..67544bc889 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -3868,7 +3868,7 @@ function _default_wp_die_handler( $message, $title = '', $args = array() ) { > - + - +