mirror of
git://develop.git.wordpress.org/
synced 2025-04-30 08:58:29 +02:00
Check if running from /src or SCRIPT_DEBUG is defined in print_emoji_detection_script()
.
See #32118. git-svn-id: https://develop.svn.wordpress.org/trunk@32482 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d9b911e477
commit
099c066e24
@ -4140,8 +4140,9 @@ function print_emoji_detection_script() {
|
||||
);
|
||||
|
||||
$version = 'ver=' . $wp_version;
|
||||
$develop_src = false !== strpos( $wp_version, '-src' );
|
||||
|
||||
if ( defined( 'SCRIPT_DEBUG' ) && 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' ),
|
||||
|
Loading…
x
Reference in New Issue
Block a user