mirror of
https://github.com/WordPress/WordPress.git
synced 2024-10-01 08:37:55 +02:00
Check if SCRIPT_DEBUG
is defined before using it in print_emoji_detection_script()
.
props Craig Ralston. fixes #32118 for trunk. Built from https://develop.svn.wordpress.org/trunk@32296 git-svn-id: http://core.svn.wordpress.org/trunk@32267 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b63a76fa4b
commit
89bf126626
@ -4141,7 +4141,7 @@ function print_emoji_detection_script() {
|
|||||||
|
|
||||||
$version = 'ver=' . $wp_version;
|
$version = 'ver=' . $wp_version;
|
||||||
|
|
||||||
if ( SCRIPT_DEBUG ) {
|
if ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) {
|
||||||
$settings['source'] = array(
|
$settings['source'] = array(
|
||||||
/** This filter is documented in wp-includes/class.wp-scripts.php */
|
/** 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' ),
|
'wpemoji' => apply_filters( 'script_loader_src', includes_url( "js/wp-emoji.js?$version" ), 'wpemoji' ),
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.3-alpha-32295';
|
$wp_version = '4.3-alpha-32296';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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