• Hi! Your plugin looks great. Please, can do you solve this PHP warning?

    Deprecated: Optional parameter $site_id declared before required parameter $all_favorites is implicitly treated as a required parameter in wp-content/plugins/favorites/app/Helpers.php on line 108

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello, I am getting the same warning a lot:

    [21-Sep-2024 16:43:32 UTC] PHP Deprecated: Required parameter $all_favorites follows optional parameter $site_id in /home/cpaneluser/mydomain.com/wp-content/plugins/favorites/app/Helpers.php on line 108

    Thread Starter wp-centrics

    (@wpcentrics)

    Hi. After I while, I patched it. Hope the autor release a patched version soon!

    Simply add into the /app/Helpers.php, at line 108 the third param:

    = array()

    Here is how it should looks now:

    public static function pluckGroupFavorites($group_id, $site_id = 1, $all_favorites = array() )
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘PHP Deprecated warning’ is closed to new replies.