ok, so are you saying that in settings forums on
Auto-embed links
you unset this and click save changes at the bottom of the page, but when you look again, this setting is still ticked?
or is it unticked, but changing it makes no difference?
sorry, no native speaker
1) I untick
2) I save
3) it is ticked again
ummm, ok I have not seen this happen before.
As a test, can you untick another option and save – I need to work out if it is that setting or any setting on that page that is not working.
I unticked nearly every option and it all works fine
I use wordpress for a long time and I never saw something like this. Perhaps it has to do with Borlabs Cookies?? I am very restrictive with cookies and scripts, I have only the absolutely necessary stuff (as said… GDPR)
ok, sorry to sound like I do not believe you, I do, but I need to be very sure what is happening especially as we are using different languages 🙂
so to summarise:
Changing any OTHER item in settings>forums works and saves ok
changing settings>forums>Auto-embed links to untick this and then save – It still shows as ticked
Yes?
correct!
I can make a quick video to show, but not sure how to upload
just some additional information: because I use a FSE theme I installed the plugin Enable bbPress for Block Themes
thanks, just tried that with Enable bbPress for Block Themes and twenty twenty five, and no problems.
What theme are you using? and do you have any customized functions?
I use Tove from Anders Noren and of course with a child theme
what do you mean with customized functions? I have a lot of code in my functions.php, but mainly for my customized loops, favorites plugin, styling comment function (not visible for not-logged-in users), Text to speech plugin, memberpress
nothing with embedded objects
Thanks, and yes I was considering whether a function in your child theme might be affecting this.
so since you can test easily (that is untick the option, save and see if it remains unticked), then my next step would be to see what could be affecting this.
So my next step would be that it could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentytwenty, and see if this fixes.
Plugins
If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Then come back
ok, but this will take some time. Currently working in production environment, I have to set up a staging environment and not sure if this works due to memberpress, stripe/paypal connection and so on
Question: thinking about deactivate Auto-Embeds in WordPress completely with some code – what do you think?
add_action( ‘init’, function() {
global $wp_embed;
if ( $wp_embed instanceof WP_Embed ) {
remove_filter( ‘the_content’, array( $wp_embed, ‘autoembed’ ), 8 );
remove_filter( ‘the_content’, array( $wp_embed, ‘run_shortcode’ ), 8 );
}
add_filter( ’embed_oembed_discover’, ‘__return_false’ );
add_filter( ‘pre_oembed_result’, ‘__return_false’ );
if ( function_exists( ‘remove_filter’ ) ) {
remove_filter( ‘bbp_get_topic_content’, ‘bbp_topic_content_autoembed’, 2 );
remove_filter( ‘bbp_get_reply_content’, ‘bbp_reply_content_autoembed’, 2 );
}
}, 20);
that would be worth trying.
untested, but you could first try
add_filter ('bbp_use_autoembed', 'rew_turn_off', 20,1 ) ;
function rew_turn_off ($value) {
return false ;
}
added the code, it works
but still astonished how something like this effect can happen