mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-28 23:27:39 +02:00
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. Built from https://develop.svn.wordpress.org/trunk@32097 git-svn-id: http://core.svn.wordpress.org/trunk@32076 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
dcf2710bc9
commit
5a547231b7
@ -4141,8 +4141,10 @@ function print_emoji_detection_script() {
|
|||||||
|
|
||||||
if ( SCRIPT_DEBUG ) {
|
if ( SCRIPT_DEBUG ) {
|
||||||
$settings['source'] = array(
|
$settings['source'] = array(
|
||||||
'wpemoji' => includes_url( "js/wp-emoji.js?$version" ),
|
/** This filter is documented in wp-includes/class.wp-scripts.php */
|
||||||
'twemoji' => includes_url( "js/twemoji.js?$version" ),
|
'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
|
<?php
|
||||||
} else {
|
} else {
|
||||||
$settings['source'] = array(
|
$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' ),
|
||||||
);
|
);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.2-beta4-32096';
|
$wp_version = '4.2-beta4-32097';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user