[BUG] preventing the settings from being saved
-
The error occurs because the
wp_lazy_loading_enabled
hook is being used with three arguments in the theme, while theapply_filters
in the plugin only has two arguments. This discrepancy is causing the error and preventing the settings from being saved.Here’s the relevant line from
src\Settings_Manager.php
(line 132):php
$fields[Constants::SETTING_NATIVE_LAZY_LOADING]['default'] = apply_filters('wp_lazy_loading_enabled', true, 'img');
To resolve the issue, the
apply_filters
function should be updated to include the third argument as expected by the hook in the theme.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.