Emoji: The emoji JS files should be run through the script_loader_src
filter, as they would be if they were registered scripts.
Props peterwilsoncc. Fixes #31938. git-svn-id: https://develop.svn.wordpress.org/trunk@32097 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
dcfb3532c1
commit
cd9374f061
@ -4141,8 +4141,10 @@ function print_emoji_detection_script() {
|
||||
|
||||
if ( SCRIPT_DEBUG ) {
|
||||
$settings['source'] = array(
|
||||
'wpemoji' => includes_url( "js/wp-emoji.js?$version" ),
|
||||
'twemoji' => includes_url( "js/twemoji.js?$version" ),
|
||||
/** This filter is documented in wp-includes/class.wp-scripts.php */
|
||||
'wpemoji' => apply_filters( 'script_loader_src', includes_url( "js/wp-emoji.js?$version" ), 'wpemoji' ),
|
||||
/** This filter is documented in wp-includes/class.wp-scripts.php */
|
||||
'twemoji' => apply_filters( 'script_loader_src', includes_url( "js/twemoji.js?$version" ), 'twemoji' ),
|
||||
);
|
||||
|
||||
?>
|
||||
@ -4153,7 +4155,8 @@ function print_emoji_detection_script() {
|
||||
<?php
|
||||
} else {
|
||||
$settings['source'] = array(
|
||||
'concatemoji' => includes_url( "js/wp-emoji-release.min.js?$version" ),
|
||||
/** This filter is documented in wp-includes/class.wp-scripts.php */
|
||||
'concatemoji' => apply_filters( 'script_loader_src', includes_url( "js/wp-emoji-release.min.js?$version" ), 'concatemoji' ),
|
||||
);
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user