• Resolved windorz

    (@windorz)


    The error occurs because the wp_lazy_loading_enabled hook is being used with three arguments in the theme, while the apply_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)
  • Plugin Support Ionut Neagu

    (@ionutn)

    Thanks for reporting this, we didn’t considered this edge case, but would be fixed in the next release.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.