Check if SCRIPT_DEBUG
is defined before using it in print_emoji_detection_script()
.
props Craig Ralston. fixes #32118 for trunk. git-svn-id: https://develop.svn.wordpress.org/trunk@32296 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
29718f1c28
commit
04ef03636e
@ -4141,7 +4141,7 @@ function print_emoji_detection_script() {
|
||||
|
||||
$version = 'ver=' . $wp_version;
|
||||
|
||||
if ( SCRIPT_DEBUG ) {
|
||||
if ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) {
|
||||
$settings['source'] = array(
|
||||
/** 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' ),
|
||||
|
Loading…
Reference in New Issue
Block a user