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


git-svn-id: https://develop.svn.wordpress.org/trunk@36249 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn 2016-01-10 01:23:49 +00:00
parent f0a706d1eb
commit 61fbfa9947
1 changed files with 2 additions and 2 deletions

View File

@ -4532,7 +4532,7 @@ function print_emoji_detection_script() {
* *
* @param string The emoji base URL. * @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. * Filter the extension of the emoji files.
@ -4644,7 +4644,7 @@ function wp_staticize_emoji( $text ) {
$text = wp_encode_emoji( $text ); $text = wp_encode_emoji( $text );
/** This filter is documented in wp-includes/formatting.php */ /** 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 */ /** This filter is documented in wp-includes/formatting.php */
$ext = apply_filters( 'emoji_ext', '.png' ); $ext = apply_filters( 'emoji_ext', '.png' );