From 1c6b1b341470c895b1b8677320ccd7be9ba59546 Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Wed, 25 Mar 2015 04:09:26 +0000 Subject: [PATCH] Emoji: Add a comment to `print_emoji_detection_script()` explaining how the `include` statement works as part of the `grunt build` process. See #31701. Built from https://develop.svn.wordpress.org/trunk@31881 git-svn-id: http://core.svn.wordpress.org/trunk@31860 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/formatting.php | 10 ++++++++++ wp-includes/version.php | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index e6f44c851e..2797741bb2 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -4156,6 +4156,16 @@ function print_emoji_detection_script() { 'concatemoji' => includes_url( "js/wp-emoji-release.min.js?$version" ), ); + /* + * If you're looking at a src version of this file, you'll see an "include" + * statement below. This is used by the `grunt build` process to directly + * include a minified version of wp-emoji-loader.js, instead of using the + * readfile() method from above. + * + * If you're looking at a build version of this file, you'll see a string of + * minified JavaScript. If you need to debug it, please turn on SCRIPT_DEBUG + * and edit wp-emoji-loader.js directly. + */ ?>