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:
parent
f0a706d1eb
commit
61fbfa9947
|
@ -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' );
|
||||
|
|
Loading…
Reference in New Issue