WebKit Bugzilla
Attachment 361401 Details for
Bug 194394
: Disable the WP emoji polyfill
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
bug-194394-20190207085450.patch (text/plain), 1.83 KB, created by
Jon Davis
on 2019-02-07 08:54:51 PST
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Jon Davis
Created:
2019-02-07 08:54:51 PST
Size:
1.83 KB
patch
obsolete
>Subversion Revision: 241121 >diff --git a/Websites/webkit.org/ChangeLog b/Websites/webkit.org/ChangeLog >index 93467ae4cc3a129531ee02715be1d1648167930c..ed00ed6310c5b8417adedbd65e289a40ad9329f1 100644 >--- a/Websites/webkit.org/ChangeLog >+++ b/Websites/webkit.org/ChangeLog >@@ -1,3 +1,12 @@ >+2019-02-07 Jon Davis <jond@apple.com> >+ >+ Disable the WP emoji polyfill >+ https://bugs.webkit.org/show_bug.cgi?id=194394 >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ * wp-content/themes/webkit/functions.php: >+ > 2019-02-04 Jon Davis <jond@apple.com> > > Add demos for Intersection Observer API >diff --git a/Websites/webkit.org/wp-content/themes/webkit/functions.php b/Websites/webkit.org/wp-content/themes/webkit/functions.php >index b10e7f957f754e16cde3e60c0d0a638d37b9b46b..3d249c4616aa7c7d5111423b583d5157b484a05b 100644 >--- a/Websites/webkit.org/wp-content/themes/webkit/functions.php >+++ b/Websites/webkit.org/wp-content/themes/webkit/functions.php >@@ -10,7 +10,18 @@ add_action( 'init', function () { > 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();
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 194394
: 361401