Title: Terence Eden's Replies | WordPress.org

---

# Terence Eden

  [  ](https://wordpress.org/support/users/edent/)

 *   [Profile](https://wordpress.org/support/users/edent/)
 *   [Topics Started](https://wordpress.org/support/users/edent/topics/)
 *   [Replies Created](https://wordpress.org/support/users/edent/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/edent/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/edent/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/edent/engagements/)
 *   [Favorites](https://wordpress.org/support/users/edent/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 55 total)

1 [2](https://wordpress.org/support/users/edent/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/edent/replies/page/3/?output_format=md) 
[4](https://wordpress.org/support/users/edent/replies/page/4/?output_format=md) 
[→](https://wordpress.org/support/users/edent/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LiteSpeed Cache] Dummy CSS still appearing – v7.5.0.1](https://wordpress.org/support/topic/dummy-css-still-appearing-v7-5-0-1/)
 *  Thread Starter [Terence Eden](https://wordpress.org/support/users/edent/)
 * (@edent)
 * [9 months ago](https://wordpress.org/support/topic/dummy-css-still-appearing-v7-5-0-1/#post-18642576)
 * That works perfectly! Thank you so much. Brilliant plugin and a brilliant team!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LiteSpeed Cache] Dummy CSS still appearing – v7.5.0.1](https://wordpress.org/support/topic/dummy-css-still-appearing-v7-5-0-1/)
 *  Thread Starter [Terence Eden](https://wordpress.org/support/users/edent/)
 * (@edent)
 * [9 months ago](https://wordpress.org/support/topic/dummy-css-still-appearing-v7-5-0-1/#post-18642418)
 * I think this is a bug in your regex then.
 * HTML attributes are allowed to be unquoted – see the spec at [https://html.spec.whatwg.org/multipage/syntax.html#attributes-2](https://html.spec.whatwg.org/multipage/syntax.html#attributes-2)
 * So in [https://github.com/litespeedtech/lscache_wp/blob/master/src/optimize.cls.php](https://github.com/litespeedtech/lscache_wp/blob/master/src/optimize.cls.php)
 * You need to update the regex from:
 *     ```wp-block-code
       const DUMMY_CSS_REGEX = "#<link rel=['\"]stylesheet['\"] id=['\"]litespeed-cache-dummy-css['\"] href=['\"].+assets/css/litespeed-dummy\.css[?\w.=-]*['\"][ \w='\"/]*>#isU";
       ```
   
 * To
 *     ```wp-block-code
       const DUMMY_CSS_REGEX = "#<link rel=['\"]?stylesheet['\"]? id=['\"]?litespeed-cache-dummy-css['\"]? href=['\"]?.+assets/css/litespeed-dummy\.css[?\w.=-]*['\"]?[ \w='\"/]*>#isU";
       ```
   
 * Or, even better, just remove the line which has the ID of `litespeed-cache-dummy-
   css` – that will prevent it from being confused by plugins which alter the order
   of attribute values.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LiteSpeed Cache] Dummy CSS still appearing – v7.5.0.1](https://wordpress.org/support/topic/dummy-css-still-appearing-v7-5-0-1/)
 *  Thread Starter [Terence Eden](https://wordpress.org/support/users/edent/)
 * (@edent)
 * [9 months ago](https://wordpress.org/support/topic/dummy-css-still-appearing-v7-5-0-1/#post-18641388)
 * Here’s the log. [https://pastebin.ubuntu.com/p/T23H4hy3yF/](https://pastebin.ubuntu.com/p/T23H4hy3yF/)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Antispam Bee] Honeypot and use with comment_form()?](https://wordpress.org/support/topic/honeypot-and-use-with-comment_form/)
 *  Thread Starter [Terence Eden](https://wordpress.org/support/users/edent/)
 * (@edent)
 * [9 months, 1 week ago](https://wordpress.org/support/topic/honeypot-and-use-with-comment_form/#post-18631410)
 * Got it! I can’t change that – my theme strips out quotes.
 * But I can change your regex to make the quotes optional. I did that and it works.
 * Want me to send a Pull Request?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Antispam Bee] Honeypot and use with comment_form()?](https://wordpress.org/support/topic/honeypot-and-use-with-comment_form/)
 *  Thread Starter [Terence Eden](https://wordpress.org/support/users/edent/)
 * (@edent)
 * [9 months, 1 week ago](https://wordpress.org/support/topic/honeypot-and-use-with-comment_form/#post-18631363)
 * The code is at [https://gitlab.com/edent/blog-theme/-/blob/master/comments.php](https://gitlab.com/edent/blog-theme/-/blob/master/comments.php)
 * I hadn’t checked that box. I’ll do so now. Thanks!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LiteSpeed Cache] Cannot modify header information – headers already sent](https://wordpress.org/support/topic/cannot-modify-header-information-headers-already-sent-75/)
 *  Thread Starter [Terence Eden](https://wordpress.org/support/users/edent/)
 * (@edent)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/cannot-modify-header-information-headers-already-sent-75/#post-18447117)
 * Looking at the cron jobs, it might be caused by the official Automattic ActivityPub
   plugin – [https://github.com/Automattic/wordpress-activitypub/](https://github.com/Automattic/wordpress-activitypub/)
 * I’ll check with them. But, in the meantime, could you use [https://www.php.net/manual/en/function.headers-sent.php](https://www.php.net/manual/en/function.headers-sent.php)
   to check before throwing an error?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Missing MIME type using atom_enclosure()](https://wordpress.org/support/topic/missing-mime-type-using-atom_enclosure/)
 *  Thread Starter [Terence Eden](https://wordpress.org/support/users/edent/)
 * (@edent)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/missing-mime-type-using-atom_enclosure/#post-18419213)
 * Raised a bug and PR at [https://core.trac.wordpress.org/ticket/63292](https://core.trac.wordpress.org/ticket/63292)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Jetpack - WP Security, Backup, Speed, & Growth] Remove unwanted JetPack filters](https://wordpress.org/support/topic/remove-unwanted-jetpack-filters/)
 *  Thread Starter [Terence Eden](https://wordpress.org/support/users/edent/)
 * (@edent)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/remove-unwanted-jetpack-filters/#post-18071882)
 * I’ve solved the problem by uninstalling JetPack.
 * Due to Matt Mullenweg’s recent behaviour, I simply can’t trust my data and my
   site to someone who makes capricious decisions without regard to the WordPress
   community.
 * I’m sad that I can’t continue using JetPack. But Matt Mullenweg has destroyed
   my faith in JetPack and WordPress.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Jetpack - WP Security, Backup, Speed, & Growth] Will email newsletters still be sent if JetPack is disabled?](https://wordpress.org/support/topic/will-email-newsletters-still-be-sent-if-jetpack-is-disabled/)
 *  Thread Starter [Terence Eden](https://wordpress.org/support/users/edent/)
 * (@edent)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/will-email-newsletters-still-be-sent-if-jetpack-is-disabled/#post-18069009)
 * Hi [@bizanimesh](https://wordpress.org/support/users/bizanimesh/) – I have disabled
   the JetPack plugin due to Matt Mullenweg’s recent behaviour. I simply can’t trust
   my data and my site to someone who makes capricious decisions without regard 
   to the WordPress community.
 * I’m sad that I can’t continue using JetPack to send my subscribers new posts.
   But Matt Mullenweg has destroyed my faith in JetPack and WordPress.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Jetpack - WP Security, Backup, Speed, & Growth] Remove unwanted JetPack filters](https://wordpress.org/support/topic/remove-unwanted-jetpack-filters/)
 *  Thread Starter [Terence Eden](https://wordpress.org/support/users/edent/)
 * (@edent)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/remove-unwanted-jetpack-filters/#post-18061195)
 * Sadly, this doesn’t work.
 *     ```wp-block-code
       add_filter( 'jetpack_tools_to_include', '__return_empty_array' );
       ```
   
 * If I *just* have that in my functions.php, it loads up all sort of irrelevant
   JP stuff like jetpack_videopress_flash_embed_filter and jetpack_spotify_embed_ids
 * The only thing I need from JetPack is stats. So I’ve ended up with this unwieldy
   monster function:
 *     ```wp-block-code
       add_action('init', function() {	if ( class_exists( 'Jetpack_Simple_Payments' ) ) {		remove_filter(			'the_content',			[Jetpack_Simple_Payments::get_instance(), 'remove_auto_paragraph_from_product_description'],			0		);	}	remove_filter( 'the_content', 'jetpack_videopress_flash_embed_filter', 7 ); 	remove_filter( 'the_content', 'jetpack_spotify_embed_ids', 7 ); 	remove_filter( 'the_content', 'jetpack_fix_youtube_shortcode_display_filter', 7 ); 	remove_filter( 'the_content', 'convert_smilies', 20 );	foreach ( array( 'the_content', 'the_title', 'wp_title', 'document_title' ) as $filter ) {		remove_filter( $filter, 'capital_P_dangit', 11 );	}	remove_filter( 'comment_text', 'capital_P_dangit', 31 );	//	No idea why this is separate	remove_filter( 'the_content', 'do_blocks', 9 );	if ( \function_exists( 'crowdsignal_link' ) ) {		\remove_filter( 'the_content', 'crowdsignal_link', 1 );	}	//	Remove Open Graph	add_filter( "jetpack_enable_open_graph", "__return_false" );	// Remove JetPack CSS	// https://css-tricks.com/snippets/wordpress/removing-jetpack-css/	add_filter( 'jetpack_sharing_counts', '__return_false', 99 );	add_filter( 'jetpack_implode_frontend_css', '__return_false', 99 );	//	Remove the forced Blaze	//	https://developer.jetpack.com/hooks/jetpack_blaze_enabled/	add_filter( 'jetpack_blaze_enabled', '__return_false' );        add_filter( 'jetpack_tools_to_include', '__return_empty_array' );}, 11);// Remove Sharing Icons// https://jetpack.com/2013/06/10/moving-sharing-icons/function jptweak_remove_share() {	remove_filter( 'the_content', 'sharing_display', 19 );	remove_filter( 'the_excerpt', 'sharing_display', 19 );	if ( class_exists( 'Jetpack_Likes' ) ) {		remove_filter( 'the_content', array( Jetpack_Likes::init(), 'post_likes' ), 30, 1 );	}}add_action( 'loop_start', 'jptweak_remove_share' );
       ```
   
 * Like, this is clearly bonkers, right? I want one function from your plugin. There’s
   no sensible way to disable all the other extraneous stuff.
 * I do appreciate all the work you do. But JetPack just doesn’t work for me any
   more. I want something modular rather than running dozens of irrelevant functions.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Jetpack - WP Security, Backup, Speed, & Growth] Remove unwanted JetPack filters](https://wordpress.org/support/topic/remove-unwanted-jetpack-filters/)
 *  Thread Starter [Terence Eden](https://wordpress.org/support/users/edent/)
 * (@edent)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/remove-unwanted-jetpack-filters/#post-18024581)
 * > It seems to work in my tests. Can you tell me more about what you tried, and
   > how you’re still experiencing issues?
 * I’ve added this code to functions.php
 *     ```wp-block-code
       add_filter( 'jetpack_tools_to_include', function( $tools ) {	var_dump($tools);die();	$index = array_search( 'geo-location.php', $tools, true );	if ( $index ) {		unset( $tools[$index] );	}	return $tools;} );
       ```
   
 * I’m then looping through `$wp_filter["the_content"]->callbacks` as per [https://shkspr.mobi/blog/2024/08/wordpress-display-hook-action-priority-in-the-dashboard/](https://shkspr.mobi/blog/2024/08/wordpress-display-hook-action-priority-in-the-dashboard/)
 * > Doing so would add hundreds of toggles
 * I think you misunderstand me. There are already toggles like this for all sorts
   of JetPack options:
 * ![](https://i0.wp.com/i.imgur.com/OjxKePn.png?ssl=1)
 * If I’ve turned off something, there shouldn’t be any filter loaded.
 * For example, I don’t have Monetize switched on – but the filter is still active.
   You say it doesn’t have a noticeable impact – but that could change in the future.
   I want JetPack to respect my choices.
 * Additionally, I can’t find a setting for Geotagged posts. Again, I don’t want
   something loaded if I’m not using it. These things shouldn’t be forced onto users;
   we should have a choice.
    -  This reply was modified 1 year, 8 months ago by [Terence Eden](https://wordpress.org/support/users/edent/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Jetpack - WP Security, Backup, Speed, & Growth] Remove unwanted JetPack filters](https://wordpress.org/support/topic/remove-unwanted-jetpack-filters/)
 *  Thread Starter [Terence Eden](https://wordpress.org/support/users/edent/)
 * (@edent)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/remove-unwanted-jetpack-filters/#post-18024485)
 * Thanks [@jeherve](https://wordpress.org/support/users/jeherve/) – sadly the `
   jetpack_tools_to_include` filter doesn’t seem to be firing. But it gives me something
   to look for.
 * Could I please encourage you to make these switches visible in the JetPack UI?
   I don’t think it is fair to ask users to add custom functions to toggle this 
   functionality. If someone hasn’t switched on Payments, for example, there’s no
   need to load it up by default.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Jetpack - WP Security, Backup, Speed, & Growth] Remove unwanted JetPack filters](https://wordpress.org/support/topic/remove-unwanted-jetpack-filters/)
 *  Thread Starter [Terence Eden](https://wordpress.org/support/users/edent/)
 * (@edent)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/remove-unwanted-jetpack-filters/#post-17954515)
 * [@kittmedia](https://wordpress.org/support/users/kittmedia/) Thanks! That appears
   to work. The only one I can’t get removed now is `Jetpack_Geo_Location::the_content_microformat`
 * The rest I’ve destroyed with
 *     ```wp-block-code
       remove_filter(		'the_content',		[Jetpack_Simple_Payments::get_instance(), 'remove_auto_paragraph_from_product_description'],		0);remove_filter( 'the_content', 'jetpack_videopress_flash_embed_filter', 7 ); remove_filter( 'the_content', 'jetpack_spotify_embed_ids', 7 ); remove_filter( 'the_content', 'jetpack_fix_youtube_shortcode_display_filter', 7 );
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Jetpack - WP Security, Backup, Speed, & Growth] PHP Warning automattic\jetpack\extensions\social_previews\FEATURE_NAME](https://wordpress.org/support/topic/php-warning-automatticjetpackextensionssocial_previewsfeature_name/)
 *  Thread Starter [Terence Eden](https://wordpress.org/support/users/edent/)
 * (@edent)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/php-warning-automatticjetpackextensionssocial_previewsfeature_name/#post-17929716)
 * It’s [https://shkspr.mobi/blog/](https://shkspr.mobi/blog/)
 * Thanks
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Jetpack - WP Security, Backup, Speed, & Growth] PHP Warning automattic\jetpack\extensions\social_previews\FEATURE_NAME](https://wordpress.org/support/topic/php-warning-automatticjetpackextensionssocial_previewsfeature_name/)
 *  Thread Starter [Terence Eden](https://wordpress.org/support/users/edent/)
 * (@edent)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/php-warning-automatticjetpackextensionssocial_previewsfeature_name/#post-17916515)
 * Jetpack Version 13.6 – which I believe is the latest.
 * WordPress Version 6.6.1
 * PHP Version 8.3.9

Viewing 15 replies - 1 through 15 (of 55 total)

1 [2](https://wordpress.org/support/users/edent/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/edent/replies/page/3/?output_format=md) 
[4](https://wordpress.org/support/users/edent/replies/page/4/?output_format=md) 
[→](https://wordpress.org/support/users/edent/replies/page/2/?output_format=md)