diff options
Diffstat (limited to 'plugins/jetpack/3rd-party/class.jetpack-amp-support.php')
-rw-r--r-- | plugins/jetpack/3rd-party/class.jetpack-amp-support.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/jetpack/3rd-party/class.jetpack-amp-support.php b/plugins/jetpack/3rd-party/class.jetpack-amp-support.php index 4a2d0a85..bf8d19f5 100644 --- a/plugins/jetpack/3rd-party/class.jetpack-amp-support.php +++ b/plugins/jetpack/3rd-party/class.jetpack-amp-support.php @@ -22,6 +22,12 @@ class Jetpack_AMP_Support { add_action( 'amp_post_template_footer', array( 'Jetpack_AMP_Support', 'add_stats_pixel' ) ); } + /** + * Remove this during the init hook in case users have enabled it during + * the after_setup_theme hook, which triggers before init. + */ + remove_theme_support( 'jetpack-devicepx' ); + // Sharing. add_filter( 'jetpack_sharing_display_markup', array( 'Jetpack_AMP_Support', 'render_sharing_html' ), 10, 2 ); add_filter( 'sharing_enqueue_scripts', array( 'Jetpack_AMP_Support', 'amp_disable_sharedaddy_css' ) ); |