Willy Bahuaud
Forum Replies Created
-
Forum: Plugins
In reply to: [hCaptcha for WP] FAtal error with new versionI upgraded, then I accessed admin.
I know it’s a core function, but it’s not always loaded (require
wp-admin/includes/template.php
). Maybe it’s called too early ?Forum: Plugins
In reply to: [Single Post Query Loop Selector] You should replace your querySorry, wrong code… updated here:
add_filter( 'query_loop_block_query_vars', __NAMESPACE__ . '\filter_my_query', 10, 2 ); function filter_my_query( $query, $block ) { if ( ! empty( $block->context['query']['include'] ) ) { $query['post__in'] = $block->context['query']['include']; } return $query; }
Je précise que vous m’avez répondu par mail que vous ne corrigeriez pas cette erreur car par défaut une valeur null est remplacé par “&”.
Cela ne fonctionne ainsi qu’à partir de PHP 8.2 ; avant cela, si un argument est saisi (qu’il soit null ou vide) c’est bien ce dernier qui sera appliqué.
Je laisse cette info ici uniquement pour les gens qui rencontrent le même problème.- This reply was modified 1 year, 1 month ago by Willy Bahuaud.
Forum: Plugins
In reply to: [Spectra - WordPress Gutenberg Blocks] CSS declaration broken each dayHello here @anerian @harrangen @djohnnysk !
I am very disappointed with the support of this plugin, which does not help us at all. So here is a plugin to fix the problem in the meantime:
<?php /** * Plugin name: Debug Spectra * Description: Debug assets generation for spectra * Author: Willy Bahuaud * Author URI: https://wabeo.fr */ register_activation_hook( __FILE__, 'add_a_debug_spectra_task' ); function add_a_debug_spectra_task() { if ( ! wp_next_scheduled( 'do_w_regenerate_spectra_assets' ) ) { wp_schedule_event( time(), 'hourly', 'do_w_regenerate_spectra_assets' ); } } add_action( 'do_w_regenerate_spectra_assets', 'w_regenerate_spectra_assets' ); function w_regenerate_spectra_assets() { $wp_upload_dir = \UAGB_Helper::get_uag_upload_dir_path(); if ( file_exists( $wp_upload_dir . 'custom-style-blocks.css' ) ) { wp_delete_file( $wp_upload_dir . 'custom-style-blocks.css' ); } $file_generation = \UAGB_Helper::allow_file_generation(); if ( 'enabled' === $file_generation ) { \UAGB_Helper::delete_uag_asset_dir(); } \UAGB_Admin_Helper::create_specific_stylesheet(); /* Update the asset version */ \UAGB_Admin_Helper::update_admin_settings_option( '__uagb_asset_version', time() ); }
I wish you a good week-end!
WillyForum: Plugins
In reply to: [Spectra - WordPress Gutenberg Blocks] CSS declaration broken each day@harrangen On two of my websites, the problem occur when a woocommerce order is placed, on the last one the problème occur when a content (which dont use spectra blocks) is programmatically updated. Maybe we got something in common, isn’t? ??
One last thing: which php version do you use?- This reply was modified 1 year, 7 months ago by Willy Bahuaud.
- This reply was modified 1 year, 7 months ago by Willy Bahuaud.
Forum: Plugins
In reply to: [Spectra - WordPress Gutenberg Blocks] CSS declaration broken each day… and on another website today again! Why did the block styles break all the time when I use Spectra (on different hosters)?
Forum: Plugins
In reply to: [Spectra - WordPress Gutenberg Blocks] CSS declaration broken each dayHi!
Your help support said they can’t reproduce the issue and require a sandbox website, but I can’t fursnish it. And actually it happen also on one other of website (no server-side cache). Can we disable this feature? (as I dont want the css styles to be “optimized” by spectra.)
- This reply was modified 1 year, 7 months ago by Willy Bahuaud.
Forum: Plugins
In reply to: [Spectra - WordPress Gutenberg Blocks] CSS declaration broken each day@mohsinbsf Sorry but I don’t think that it’s related to a cache system: I ask my hoster which confirm there are no server-side cache. I unactivated all cache plugin a month ago and the problem still occur.
@djohnnysk Tell me: do you use on your page content some old UAGB/spectra deprecated blocks? I use the old column blocks and… it’s seem that the missing CSS declaration concern only the blocks contained in it.
Forum: Plugins
In reply to: [Pastacode] Possible Exploit in codeHello,
Thanks you to flagged it as false positive. Maybe your host disallow php script to get remote code from website like GitHub…?
Pastacode can retrieve remote code (to display it on your posts) but prevent any execution (all data are escaped before save/display).
Have a nice day!
Forum: Plugins
In reply to: [Pastacode] YAML SupportHello,
If you need to support YAML, you can use a custom build of prismjs. You can register your custom build following these steps:
add_action( 'wp_enqueue_scripts', 'custom_enqueue_script', 11 ); function custom_enqueue_script() { wp_deregister_script( 'prismjs' ); wp_register_script( 'prismjs', get_stylesheet_directory_uri() . '/my-prismjs.css', false, true ); } add_filter( 'pastacode_langs', 'pastacode_new_languages' ); function pastacode_new_languages( $languages ) { $languages['yaml'] = 'YAML'; return $languages; }
Unfortunatly, all the plugins on the official WordPress Repository are not allowed to use external ressources (for security reason), so we can’t use CDN :-/
Have a nice day!
Forum: Plugins
In reply to: [WP Deferred JavaScripts] Bad Bad Bad Bad Bad Bad Plugin !!Ok, I understand! I didn’t suspected that jQuery was not loaded in your
$wp_scripts
. So your problem is solved?Have a nice day,
Willy
Forum: Plugins
In reply to: [WP Deferred JavaScripts] Bad Bad Bad Bad Bad Bad Plugin !!Hi,
I’m really trying to help you.
I know the plugin doesn’t write any file, it just hook onscript_loader_src
to dequeue scripts and reload them using labjs onwp_footer()
. So if the plugin is deactivated, there is no reason it alter your JavaScript files loading anymore…- This reply was modified 7 years, 10 months ago by Willy Bahuaud.
Forum: Plugins
In reply to: [WP Deferred JavaScripts] Bad Bad Bad Bad Bad Bad Plugin !!Maybe the function callback name (empty_script without “s”)? :-/
Forum: Plugins
In reply to: [WP Deferred JavaScripts] Bad Bad Bad Bad Bad Bad Plugin !!And for this step:
If you modify anything else (like a text string in your theme), does this change appear?
Your change was visible, or uneffective?
I wonder, also: does your theme have a
wp_head()
and awp_footer()
template tags?Forum: Plugins
In reply to: [WP Deferred JavaScripts] Bad Bad Bad Bad Bad Bad Plugin !!Hello,
If you modify anything else (like a text string in your theme), does this change appear?
A static cache file can stay actif in your website, even if you reboot your server. It’s the way many cache plugin works. If the problem persist, I suggest you to deactivate all your plugin, and then activate each one after the other to check where the issue is ??
- This reply was modified 7 years, 10 months ago by Willy Bahuaud.