From 8294b40161ccd7c83626ab716ebc48cb5c7a3cef Mon Sep 17 00:00:00 2001 From: Peter Wilson Date: Mon, 2 Oct 2017 04:00:48 +0000 Subject: [PATCH] Emoji: Refactor browser support tests. Moves the repeated code in the emoji browser support test to a function to reduced the potential for errors and follow DRY principles. Renames the "emoji4" test "emoji" as unicode version specific tests were removed in [38869]. Props peterwilsoncc, pento for code review. Fixes #41156. Built from https://develop.svn.wordpress.org/trunk@41669 git-svn-id: http://core.svn.wordpress.org/trunk@41503 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/formatting.php | 2 +- wp-includes/js/wp-emoji-loader.js | 79 ++++++++++++++------------- wp-includes/js/wp-emoji-loader.min.js | 2 +- wp-includes/version.php | 2 +- 4 files changed, 45 insertions(+), 40 deletions(-) diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index b430814b91..f927d2da33 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -5093,7 +5093,7 @@ function _print_emoji_detection_script() { ?>