From 1ee0c8e54f17ac7c2c6d3c5f3610356a64634b92 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 11 Nov 2019 09:58:17 +0000 Subject: [PATCH] Customize: Remove the deprecated `-precomposed` suffix from `apple-touch-icon` link in `wp_site_icon()`. Props mukto90, khag7. Fixes #48555. git-svn-id: https://develop.svn.wordpress.org/trunk@46698 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/general-template.php | 2 +- tests/phpunit/tests/general/template.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php index b8de168861..1995cca45f 100644 --- a/src/wp-includes/general-template.php +++ b/src/wp-includes/general-template.php @@ -3150,7 +3150,7 @@ function wp_site_icon() { } $icon_180 = get_site_icon_url( 180 ); if ( $icon_180 ) { - $meta_tags[] = sprintf( '', esc_url( $icon_180 ) ); + $meta_tags[] = sprintf( '', esc_url( $icon_180 ) ); } $icon_270 = get_site_icon_url( 270 ); if ( $icon_270 ) { diff --git a/tests/phpunit/tests/general/template.php b/tests/phpunit/tests/general/template.php index 648e22661a..0a6802cfdf 100644 --- a/tests/phpunit/tests/general/template.php +++ b/tests/phpunit/tests/general/template.php @@ -105,7 +105,7 @@ class Tests_General_Template extends WP_UnitTestCase { $output = array( sprintf( '', esc_url( get_site_icon_url( 32 ) ) ), sprintf( '', esc_url( get_site_icon_url( 192 ) ) ), - sprintf( '', esc_url( get_site_icon_url( 180 ) ) ), + sprintf( '', esc_url( get_site_icon_url( 180 ) ) ), sprintf( '', esc_url( get_site_icon_url( 270 ) ) ), '', ); @@ -126,7 +126,7 @@ class Tests_General_Template extends WP_UnitTestCase { $output = array( sprintf( '', esc_url( get_site_icon_url( 32 ) ) ), sprintf( '', esc_url( get_site_icon_url( 192 ) ) ), - sprintf( '', esc_url( get_site_icon_url( 180 ) ) ), + sprintf( '', esc_url( get_site_icon_url( 180 ) ) ), sprintf( '', esc_url( get_site_icon_url( 270 ) ) ), sprintf( '', esc_url( get_site_icon_url( 150 ) ) ), '', @@ -175,7 +175,7 @@ class Tests_General_Template extends WP_UnitTestCase { $output = array( sprintf( '', esc_url( wp_get_attachment_image_url( $attachment_id, 32 ) ) ), sprintf( '', esc_url( wp_get_attachment_image_url( $attachment_id, 192 ) ) ), - sprintf( '', esc_url( wp_get_attachment_image_url( $attachment_id, 180 ) ) ), + sprintf( '', esc_url( wp_get_attachment_image_url( $attachment_id, 180 ) ) ), sprintf( '', esc_url( wp_get_attachment_image_url( $attachment_id, 270 ) ) ), '', );