From 877d14883e8df7c28588bf2496b384314d37cd62 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Sun, 10 Jan 2016 01:24:26 +0000 Subject: [PATCH] Emoji: Explictly use `https` as the scheme for emoji fallback images, as they're only served over HTTPS by the CDN anyway. Fixes #35376 Props ocean90 Built from https://develop.svn.wordpress.org/trunk@36249 git-svn-id: http://core.svn.wordpress.org/trunk@36216 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/formatting.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index 22696e9161..7257713a4f 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -4532,7 +4532,7 @@ function print_emoji_detection_script() { * * @param string The emoji base URL. */ - 'baseUrl' => apply_filters( 'emoji_url', set_url_scheme( '//s.w.org/images/core/emoji/72x72/' ) ), + 'baseUrl' => apply_filters( 'emoji_url', 'https://s.w.org/images/core/emoji/72x72/' ), /** * Filter the extension of the emoji files. @@ -4644,7 +4644,7 @@ function wp_staticize_emoji( $text ) { $text = wp_encode_emoji( $text ); /** This filter is documented in wp-includes/formatting.php */ - $cdn_url = apply_filters( 'emoji_url', set_url_scheme( '//s.w.org/images/core/emoji/72x72/' ) ); + $cdn_url = apply_filters( 'emoji_url', 'https://s.w.org/images/core/emoji/72x72/' ); /** This filter is documented in wp-includes/formatting.php */ $ext = apply_filters( 'emoji_ext', '.png' ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 4095639f6f..2b3096e599 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.5-alpha-36248'; +$wp_version = '4.5-alpha-36249'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.