Build/Test Tools: Remove the `replace:emoji-banner-text` Grunt task.
The task was previously used to ensure that `/*! This file is auto-generated */` comment is not included on front end as part of the inline emoji detection script. As the `wp-emoji-loader.js` script is now included via `file_get_contents()` and `wp_print_inline_script_tag()` instead of `grunt-include` to simplify the logic, the task does not find anything to replace and is no longer necessary. Additionally, include a line break before the `wp-emoji-loader.js` script content for better line wrapping. Follow-up to [48096], [50651], [52132]. See #44632, #44306, #53363. Built from https://develop.svn.wordpress.org/trunk@52325 git-svn-id: http://core.svn.wordpress.org/trunk@51917 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3060ce0b59
commit
a9edd7ba88
|
@ -5787,7 +5787,7 @@ function _print_emoji_detection_script() {
|
||||||
}
|
}
|
||||||
|
|
||||||
wp_print_inline_script_tag(
|
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' ) )
|
file_get_contents( sprintf( ABSPATH . WPINC . '/js/wp-emoji-loader' . wp_scripts_get_suffix() . '.js' ) )
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.9-beta1-52324';
|
$wp_version = '5.9-beta1-52325';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue