Terence Eden
Forum Replies Created
-
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.
Hi @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.
Sadly, this doesn’t work.
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:
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.
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
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/Doing so would add hundreds of toggles
I think you misunderstand me. There are already toggles like this for all sorts of JetPack options:
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 2 months ago by Terence Eden.
Thanks @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.
@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
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 );It’s https://shkspr.mobi/blog/
Thanks
Jetpack Version 13.6 – which I believe is the latest.
WordPress Version 6.6.1
PHP Version 8.3.9
Forum: Plugins
In reply to: [APCu Manager] Crash dashboardSame here. Here’s how I was able to disable the plugin.
Edit the file
/wp-content/plugins/apcu-manager/includes/libraries/decalog-sdk/EventsLogger.php
Replace line 12
if ( ! defined( 'DECALOG_VERSION' ) && version_compare(DECALOG_VERSION, '4.0.0', '<') ) {
withif (true) {
Then, on the command line, I ran
wp plugin deactivate apcu-manager
which disabled the plugin.Hope that’s of some use to people.
Forum: Plugins
In reply to: [Editorial Calendar] PHP 8.2+: Use of Dynamic Properties is deprecatedA quick fix for this is to add a line at the top of
class EdCal {
which says:protected $default_status;
You also need to change
function edcal_json_encode($string)
to say:if ( null != $string ) { return json_encode(str_replace("'", "’", $string)); } else { return; }
Forum: Plugins
In reply to: [Markup Markdown] Link to Easy MDE is brokenThanks – all seems to be working great ?? Brilliant job!
Is there any way to change the size of inserted images? I can open a different support request if that’s easier?
Forum: Plugins
In reply to: [Markup Markdown] Link to Easy MDE is brokenThanks @peter202202 – and I’m glad you liked my posts.
Sadly, I can’t get your plugin to work with https://gehrcke.de/wp-geshi-highlight/ – for some reason, the GeSHi plugin isn’t firing. I’m not sure what hook it is looking for. But I’ll see if I can investigate.
For those looking, this appears to do the trick:
return preg_replace_callback( "/\s*<code(?:class=[\"']language\-([\w-]+)[\"']|line=[\"'](\d*)[\"']" ."|escaped=[\"'](true|false)?[\"']|cssfile=[\"']([\S]+)[\"']|\s)+>". "(.*)<\/code>\s*/siU", "wp_geshi_store_and_substitute", $s );
You may also need to manually set
$escaped = true;
later in the file.- This reply was modified 7 months, 2 weeks ago by Terence Eden.
Forum: Plugins
In reply to: [Editorial Calendar] Moving an item in the calendar strips contentI’ve noticed this too. Posts written in Markdown are converted to HTML when they’re moved.
Most inconvenient!
Forum: Everything else WordPress
In reply to: Get warning message before publishingHi Dee,
Here’s some code that you can put in your
functions.php
file. Note – that this doesn’t work with the Gutenberg editor – only the classic editor.add_action( "admin_footer", "confirm_publish" ); function confirm_publish() { echo <<< EOT <script> var publishButton = document.getElementById("publish"); if (publishButton !== null) { publishButton.onclick = function(event) { event.stopImmediatePropagation(); var publishValue = publishButton.value; return confirm("Do you want to " + publishValue + " this now?"); }; } </script>' EOT; }
That puts a little script on your admin pages. When you hit publish, schedule, or update, you’ll get a confirmation message.