You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: includes/class-amp-theme-support.php
+33-13Lines changed: 33 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -849,19 +849,14 @@ public static function add_hooks() {
849
849
remove_action( 'wp_head', 'wp_post_preview_js', 1 ); // @todo Instead of function, the script output by wp_post_preview_js() should get data-ampdevmode.
850
850
remove_action( 'wp_head', 'wp_oembed_add_host_js' ); // This is not needed when post embeds are embedded via <amp-wordpress-embed>. See <https://github.com/ampproject/amp-wp/issues/809>.
851
851
852
-
// Replace JS-based emoji with PHP-based, if the JS-based emoji replacement was not already removed.
853
-
if ( has_action( 'wp_head', 'print_emoji_detection_script' ) ) {
// @todo The wp_mediaelement_fallback() should still run to be injected inside of the audio/video generated by wp_audio_shortcode()/wp_video_shortcode() respectively.
867
862
// @todo When custom scripts appear on the page, this logic should be skipped. So the removal of MediaElement.js script & styles should perhaps be done by the script sanitizer instead.
@@ -916,6 +911,28 @@ static function() {
916
911
);
917
912
}
918
913
914
+
/**
915
+
* Filter resource hints to remove the emoji CDN (s.w.org).
0 commit comments