Forum Replies Created

Viewing 1 replies (of 1 total)
  • Error 1:
    PHP Warning: array_filter() expects parameter 1 to be array, string given in:
    …\wp-content\plugins\woo-wishlist\includes\functions.php on line 149

    Error 2:
    array_filter() expects parameter 1 to be array, string given in:
    …\wp-content\plugins\woo-wishlist\includes\functions.php on line 576

    The original code:
    $wishlist_id = array_filter($wishlist_id);

    The fix:
    $wishlist_id = is_array($wishlist_id) ? array_filter($wishlist_id) : array_filter([$wishlist_id]);

    You must replace the original code with this one.
    Hope it helps.

    • This reply was modified 6 years, 1 month ago by belachkar.
Viewing 1 replies (of 1 total)