[BUG] preventing the settings from being saved
-
The error occurs because the
wp_lazy_loading_enabledhook is being used with three arguments in the theme, while theapply_filtersin 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_filtersfunction 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)
The topic ‘[BUG] preventing the settings from being saved’ is closed to new replies.