Check if running from /src or SCRIPT_DEBUG is defined in `print_emoji_detection_script()`.

See #32118.
Built from https://develop.svn.wordpress.org/trunk@32482


git-svn-id: http://core.svn.wordpress.org/trunk@32452 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2015-05-10 18:24:30 +00:00
parent 73892c112c
commit 9ecaba2688
2 changed files with 3 additions and 2 deletions

View File

@ -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' ),

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.3-alpha-32481';
$wp_version = '4.3-alpha-32482';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.