Title: [241174] trunk/Websites/webkit.org
- Revision
- 241174
- Author
- [email protected]
- Date
- 2019-02-07 16:55:08 -0800 (Thu, 07 Feb 2019)
Log Message
Disable the WP emoji polyfill
https://bugs.webkit.org/show_bug.cgi?id=194394
Reviewed by Devin Rousso.
* wp-content/themes/webkit/functions.php:
Modified Paths
Diff
Modified: trunk/Websites/webkit.org/ChangeLog (241173 => 241174)
--- trunk/Websites/webkit.org/ChangeLog 2019-02-08 00:52:47 UTC (rev 241173)
+++ trunk/Websites/webkit.org/ChangeLog 2019-02-08 00:55:08 UTC (rev 241174)
@@ -1,5 +1,14 @@
2019-02-07 Jon Davis <[email protected]>
+ Disable the WP emoji polyfill
+ https://bugs.webkit.org/show_bug.cgi?id=194394
+
+ Reviewed by Devin Rousso.
+
+ * wp-content/themes/webkit/functions.php:
+
+2019-02-07 Jon Davis <[email protected]>
+
Fixed responsive design issues for the Contribute drop-down menu and pagination
https://bugs.webkit.org/show_bug.cgi?id=194393
Modified: trunk/Websites/webkit.org/wp-content/themes/webkit/functions.php (241173 => 241174)
--- trunk/Websites/webkit.org/wp-content/themes/webkit/functions.php 2019-02-08 00:52:47 UTC (rev 241173)
+++ trunk/Websites/webkit.org/wp-content/themes/webkit/functions.php 2019-02-08 00:55:08 UTC (rev 241174)
@@ -10,7 +10,18 @@
register_nav_menu('feature-subnav', __( 'Feature Page Buttons' ));
} );
-//add_action( 'wp_header', 'include_invert_lightness_filter');
+// Disable WP-emoji polyfill
+add_action('init', function() {
+ remove_action('wp_head', 'print_emoji_detection_script', 7);
+ remove_action('admin_print_scripts', 'print_emoji_detection_script');
+ remove_action('admin_print_styles', 'print_emoji_styles');
+ remove_action('wp_print_styles', 'print_emoji_styles');
+ remove_filter('the_content_feed', 'wp_staticize_emoji');
+ remove_filter('comment_text_rss', 'wp_staticize_emoji');
+ remove_filter('wp_mail', 'wp_staticize_emoji_for_email');
+ // Remove DNS prefetch
+ add_filter('emoji_svg_url', '__return_false');
+});
add_action( 'wp_dashboard_setup', function () {
$SurveyWidget = new WebKit_Nightly_Survey();
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes