• We plan to upgrade to PHP 8, so we tested our WordPress site with PHP 8, and we got the following warning related to your Ebook Store plugin:

    Deprecated: Required parameter $val follows optional parameter $key in /home/tecnicas/public_html/wlmtesting.verdadera-seduccion.com/wp-content/plugins/ebook-store/functions.php on line 1854

    That line’s content is:

    function ebook_get_order($key = 'ebook_key',$val) {

    And the problem is solved by turning it into:

    function ebook_get_order($key,$val) {

    which I believe to be safe, as we saw all calls to that function pass ‘ebook_key’ as the first parameter anyway.

    • This topic was modified 2 years, 8 months ago by domenecbf.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘PHP 8 Deprecated on ebook_get_order’ is closed to new replies.