Viewing 2 replies - 1 through 2 (of 2 total)
  • Its been 4 months. I would like to ask plugin developer to please fix this issue ASAP.

    Thirding this. I have also submitted a support ticket.

    The error:
    Deprecated: Unparenthesized 'a ? b : c ? d : e' is deprecated. Use either '(a ? b : c) ? d : e' or 'a ? b : (c ? d : e)' in /var/www/html/assets/plugins/caldera-forms/classes/core.php on line 3732

    The offending code:

    $entry_id = !empty($wp_query->query_vars[ 'cf_entry' ]) ? $wp_query->query_vars[ 'cf_entry' ] : isset($_GET, $_GET[ 'entry' ]) && absint($_GET[ 'entry' ]) ? $_GET[ 'entry' ] : null;

    The fixed code:

    $entry_id = !empty($wp_query->query_vars[ 'cf_entry' ]) ? $wp_query->query_vars[ 'cf_entry' ] : (isset($_GET, $_GET[ 'entry' ]) && absint($_GET[ 'entry' ]) ? $_GET[ 'entry' ] : null);

    • This reply was modified 4 years, 6 months ago by ollycross.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Deprecated php 7.4’ is closed to new replies.