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
This commit is contained in:
parent
bd6f3f617a
commit
9c39da15f4
|
@ -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' );
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue