diff --git a/Gruntfile.js b/Gruntfile.js index 7eef7cda9a..3c936b1179 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -1093,26 +1093,6 @@ module.exports = function(grunt) { } ] }, - 'emoji-banner-text': { - options: { - patterns: [ - { - match: new RegExp( '\\s*' + BANNER_TEXT.replace( /[\/\*\!]/g, '\\$&' ) ), - replacement: '' - } - ] - }, - files: [ - { - expand: true, - flatten: true, - src: [ - BUILD_DIR + 'wp-includes/formatting.php' - ], - dest: BUILD_DIR + 'wp-includes/' - } - ] - }, 'source-maps': { options: { patterns: [ @@ -1583,7 +1563,6 @@ module.exports = function(grunt) { 'build:files', 'build:js', 'build:css', - 'replace:emoji-banner-text', 'replace:source-maps', 'verify:build' ] ); diff --git a/src/wp-includes/formatting.php b/src/wp-includes/formatting.php index 5a135f0f0e..9c8b71cfbf 100644 --- a/src/wp-includes/formatting.php +++ b/src/wp-includes/formatting.php @@ -5787,7 +5787,7 @@ function _print_emoji_detection_script() { } wp_print_inline_script_tag( - sprintf( 'window._wpemojiSettings = %s;', wp_json_encode( $settings ) ) . + sprintf( 'window._wpemojiSettings = %s;', wp_json_encode( $settings ) ) . "\n" . file_get_contents( sprintf( ABSPATH . WPINC . '/js/wp-emoji-loader' . wp_scripts_get_suffix() . '.js' ) ) ); }