From 9c39da15f400a3aabc2710eab93405dda5231781 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 24 Jan 2018 16:50:15 +0000 Subject: [PATCH] Emoji: Update emoji base URL in `_print_emoji_detection_script()` and `wp_staticize_emoji()`. Props pento. Fixes #42862. git-svn-id: https://develop.svn.wordpress.org/trunk@42590 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/formatting.php | 6 +++--- src/wp-includes/general-template.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/wp-includes/formatting.php b/src/wp-includes/formatting.php index 593e874808..25cb4952b7 100644 --- a/src/wp-includes/formatting.php +++ b/src/wp-includes/formatting.php @@ -5325,7 +5325,7 @@ function _print_emoji_detection_script() { * * @param string The emoji base URL for png images. */ - 'baseUrl' => apply_filters( 'emoji_url', 'https://s.w.org/images/core/emoji/2.3/72x72/' ), + 'baseUrl' => apply_filters( 'emoji_url', 'https://s.w.org/images/core/emoji/2.4/72x72/' ), /** * Filters the extension of the emoji png files. @@ -5343,7 +5343,7 @@ function _print_emoji_detection_script() { * * @param string The emoji base URL for svg images. */ - 'svgUrl' => apply_filters( 'emoji_svg_url', 'https://s.w.org/images/core/emoji/2.3/svg/' ), + 'svgUrl' => apply_filters( 'emoji_svg_url', 'https://s.w.org/images/core/emoji/2.4/svg/' ), /** * Filters the extension of the emoji SVG files. @@ -5465,7 +5465,7 @@ function wp_staticize_emoji( $text ) { } /** This filter is documented in wp-includes/formatting.php */ - $cdn_url = apply_filters( 'emoji_url', 'https://s.w.org/images/core/emoji/2.3/72x72/' ); + $cdn_url = apply_filters( 'emoji_url', 'https://s.w.org/images/core/emoji/2.4/72x72/' ); /** This filter is documented in wp-includes/formatting.php */ $ext = apply_filters( 'emoji_ext', '.png' ); diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php index a089fa223e..e8ce171190 100644 --- a/src/wp-includes/general-template.php +++ b/src/wp-includes/general-template.php @@ -2937,7 +2937,7 @@ function wp_resource_hints() { * The path is removed in the foreach loop below. */ /** This filter is documented in wp-includes/formatting.php */ - $hints['dns-prefetch'][] = apply_filters( 'emoji_svg_url', 'https://s.w.org/images/core/emoji/2.3/svg/' ); + $hints['dns-prefetch'][] = apply_filters( 'emoji_svg_url', 'https://s.w.org/images/core/emoji/2.4/svg/' ); foreach ( $hints as $relation_type => $urls ) { $unique_urls = array();