diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index acdc3d782f..9a2dce8637 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -4140,8 +4140,9 @@ function print_emoji_detection_script() { ); $version = 'ver=' . $wp_version; + $develop_src = false !== strpos( $wp_version, '-src' ); - if ( SCRIPT_DEBUG ) { + if ( $develop_src || ( 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' ),