• Resolved mortaza

    (@mortazaamoo)


    In the file /wp-mail-smtp/src/Admin/SetupWizard.php, a deprecated method is used to check if WPForms Pro is active.
    Here’s the current code:
    $is_wpforms_pro = wpforms()->pro;
    This method is deprecated and should be replaced with the wpforms()->is_pro() method.
    Thank you for your time and effort in reviewing and implementing this change.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Darshana

    (@darshanaw)

    Hi @mortazaamoo,

    Thank you for reaching out! I’ll share your suggestion with our developers for further review.

    Once again, thank you for taking the time to provide your feedback!

    Plugin Support Darshana

    (@darshanaw)

    Hi @mortazaamoo,

    After checking with our developers, I can confirm that they’ve already implemented the following code:

    if ( method_exists( wpforms(), 'is_pro' ) ) {
    $is_wpforms_pro = wpforms()->is_pro();
    } else {
    $is_wpforms_pro = wpforms()->pro;
    }

    Basically, we’re using the new method if it’s available, and defaulting to the old method otherwise.

    If you’re currently using an older version of the WP Mail SMTP plugin, please make sure to update it to the latest version.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Deprecated method usage in SetupWizard.php’ is closed to new replies.