Plugin Directory

Changeset 3236719


Ignore:
Timestamp:
02/07/2025 04:44:48 PM (13 months ago)
Author:
checkview
Message:

Update to version 2.0.11 from GitHub

Location:
checkview
Files:
2 added
2 deleted
16 edited
1 copied

Legend:

Unmodified
Added
Removed
  • checkview/tags/2.0.11/README.txt

    r3227063 r3236719  
    88License: GPLv3
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
    10 Stable tag: 2.0.10
     10Stable tag: 2.0.11
    1111
    1212[CheckView](https://checkview.io/) is the friendly WordPress automated testing platform for everyone, from developers, shop owners to agencies. 
     
    8686
    8787== Changelog ==
     88= 2.0.11 =
     89* Resolved PHP errors related to the undefined wpforms() function.
     90* Removed IP address check from WooCommerce API-based helper endpoints.
     91* Corrected automated testing email handling in unit test cases.
     92* Resolved undefined index error in Formidable Forms by adding compatibility for repeater conditional fields.
     93* Enhanced formslist endpoint to properly handle empty form lists.
     94
    8895= 2.0.10 =
    8996* Enhanced Cloudflare Turnstile integration with Fluent Forms by leveraging cron to prevent premature deactivation of test keys.
     
    306313
    307314== Upgrade Notice ==
     315= 2.0.11 =
     316* Resolved PHP errors related to the undefined wpforms() function.
     317* Removed IP address check from WooCommerce API-based helper endpoints.
     318* Corrected automated testing email handling in unit test cases.
     319* Resolved undefined index error in Formidable Forms by adding compatibility for repeater conditional fields.
     320* Enhanced formslist endpoint to properly handle empty form lists.
     321
    308322= 2.0.10 =
    309323* Enhanced Cloudflare Turnstile integration with Fluent Forms by leveraging cron to prevent premature deactivation of test keys.
  • checkview/tags/2.0.11/admin/class-checkview-admin.php

    r3227063 r3236719  
    372372            require_once CHECKVIEW_INC_DIR . 'formhelpers/class-checkview-ninja-forms-helper.php';
    373373        }
    374         if ( is_plugin_active( 'wpforms/wpforms.php' ) || is_plugin_active( 'wpforms-lite/wpforms.php' ) ) {
     374        if ( function_exists( 'wpforms' ) && ( is_plugin_active( 'wpforms/wpforms.php' ) || is_plugin_active( 'wpforms-lite/wpforms.php' ) ) ) {
    375375            require_once CHECKVIEW_INC_DIR . 'formhelpers/class-checkview-wpforms-helper.php';
    376376        }
  • checkview/tags/2.0.11/checkview.php

    r3227063 r3236719  
    1212 * Plugin URI:        https://checkview.io
    1313 * Description:       CheckView is the #1 fully automated solution to test your WordPress forms and detect form problems fast.  Automatically test your WordPress forms to ensure you never miss a lead again.
    14  * Version:           2.0.10
     14 * Version:           2.0.11
    1515 * Author:            CheckView
    1616 * Author URI:        https://checkview.io/
     
    3636 * @link https://semver.org
    3737 */
    38 define( 'CHECKVIEW_VERSION', '2.0.10' );
     38define( 'CHECKVIEW_VERSION', '2.0.11' );
    3939
    4040if ( ! defined( 'CHECKVIEW_BASE_DIR' ) ) {
  • checkview/tags/2.0.11/includes/API/class-checkview-api.php

    r3216431 r3236719  
    19821982        }
    19831983
    1984         if ( $forms && ! empty( $forms ) && false !== $forms && '' !== $forms ) {
    1985             set_transient( 'checkview_forms_list_transient', $forms, 12 * HOUR_IN_SECONDS );
     1984        if ( is_array( $forms ) ) {
     1985            if ( ! empty( $forms ) ) {
     1986                set_transient( 'checkview_forms_list_transient', $forms, 12 * HOUR_IN_SECONDS );
     1987            }
     1988
    19861989            return new WP_REST_Response(
    19871990                array(
  • checkview/tags/2.0.11/includes/class-checkview.php

    r3227063 r3236719  
    7171            $this->version = CHECKVIEW_VERSION;
    7272        } else {
    73             $this->version = '2.0.10';
     73            $this->version = '2.0.11';
    7474        }
    7575        $this->plugin_name = 'checkview';
     
    139139        if ( ( 'checkview-saas' === get_option( $visitor_ip ) || isset( $_REQUEST['checkview_test_id'] ) || ( is_array( $cv_bot_ip ) && in_array( $visitor_ip, $cv_bot_ip ) ) ) ) {
    140140            update_option( $visitor_ip, 'checkview-saas', true );
    141             if ( class_exists( 'WooCommerce' ) ) {
    142                 require_once plugin_dir_path( __DIR__ ) . 'includes/woocommercehelper/class-checkview-woo-automated-testing.php';
    143                 $woo_helper = new Checkview_Woo_Automated_Testing( $this->get_plugin_name(), $this->get_version(), $this->loader );
    144             }
     141        }
     142        if ( class_exists( 'WooCommerce' ) ) {
     143            require_once plugin_dir_path( __DIR__ ) . 'includes/woocommercehelper/class-checkview-woo-automated-testing.php';
     144            $woo_helper = new Checkview_Woo_Automated_Testing( $this->get_plugin_name(), $this->get_version(), $this->loader );
    145145        }
    146146        $this->loader->add_filter(
  • checkview/tags/2.0.11/includes/formhelpers/class-checkview-formidable-helper.php

    r3216431 r3236719  
    310310            $tablename   = $wpdb->prefix . 'frm_fields';
    311311            $fields_data = $wpdb->get_results( $wpdb->prepare( 'Select * from ' . $tablename . ' where form_id=%d', $form_id ) );
    312             if ( $fields_data ) {
     312            if ( ! empty( $fields_data ) && is_array( $fields_data ) ) {
    313313                foreach ( $fields_data as $field ) {
    314314                    $type     = $field->type;
     
    379379                            $field_options = maybe_unserialize( $field->options );
    380380                            foreach ( $field_options as $key => $val ) {
    381                                 $field_options[ $key ]['field_id'] = $field_id . '-' . $key;
     381                                // Ensure the current value is an array.
     382                                if ( is_array( $val ) ) {
     383                                    $field_options[ $key ]['field_id'] = $field_id . '-' . $key;
     384                                } else {
     385                                    error_log( "Non-array value detected in field_options for key '{$field_id }': " . print_r( $val, true ) );
     386                                }
    382387                            }
    383388                            $fields[ $field->id ] = array(
  • checkview/tags/2.0.11/includes/woocommercehelper/class-checkview-blocks-payment-gateway.php

    r3227063 r3236719  
    6969            : array(
    7070                'dependencies' => array(),
    71                 'version'      => '2.0.10',
     71                'version'      => '2.0.11',
    7272            );
    7373        $script_url        = CHECKVIEW_URI . $script_path;
  • checkview/tags/2.0.11/includes/woocommercehelper/class-checkview-woo-automated-testing.php

    r3216431 r3236719  
    204204        }
    205205
    206         add_filter( 'wp_mail', array( $this, 'checkview_filter_wp_mail' ), 99 );
     206        // add_filter( 'wp_mail', array( $this, 'checkview_filter_wp_mail' ), 99 );
    207207        $this->checkview_test_mode();
    208208    }
  • checkview/trunk/README.txt

    r3227063 r3236719  
    88License: GPLv3
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
    10 Stable tag: 2.0.10
     10Stable tag: 2.0.11
    1111
    1212[CheckView](https://checkview.io/) is the friendly WordPress automated testing platform for everyone, from developers, shop owners to agencies. 
     
    8686
    8787== Changelog ==
     88= 2.0.11 =
     89* Resolved PHP errors related to the undefined wpforms() function.
     90* Removed IP address check from WooCommerce API-based helper endpoints.
     91* Corrected automated testing email handling in unit test cases.
     92* Resolved undefined index error in Formidable Forms by adding compatibility for repeater conditional fields.
     93* Enhanced formslist endpoint to properly handle empty form lists.
     94
    8895= 2.0.10 =
    8996* Enhanced Cloudflare Turnstile integration with Fluent Forms by leveraging cron to prevent premature deactivation of test keys.
     
    306313
    307314== Upgrade Notice ==
     315= 2.0.11 =
     316* Resolved PHP errors related to the undefined wpforms() function.
     317* Removed IP address check from WooCommerce API-based helper endpoints.
     318* Corrected automated testing email handling in unit test cases.
     319* Resolved undefined index error in Formidable Forms by adding compatibility for repeater conditional fields.
     320* Enhanced formslist endpoint to properly handle empty form lists.
     321
    308322= 2.0.10 =
    309323* Enhanced Cloudflare Turnstile integration with Fluent Forms by leveraging cron to prevent premature deactivation of test keys.
  • checkview/trunk/admin/class-checkview-admin.php

    r3227063 r3236719  
    372372            require_once CHECKVIEW_INC_DIR . 'formhelpers/class-checkview-ninja-forms-helper.php';
    373373        }
    374         if ( is_plugin_active( 'wpforms/wpforms.php' ) || is_plugin_active( 'wpforms-lite/wpforms.php' ) ) {
     374        if ( function_exists( 'wpforms' ) && ( is_plugin_active( 'wpforms/wpforms.php' ) || is_plugin_active( 'wpforms-lite/wpforms.php' ) ) ) {
    375375            require_once CHECKVIEW_INC_DIR . 'formhelpers/class-checkview-wpforms-helper.php';
    376376        }
  • checkview/trunk/checkview.php

    r3227063 r3236719  
    1212 * Plugin URI:        https://checkview.io
    1313 * Description:       CheckView is the #1 fully automated solution to test your WordPress forms and detect form problems fast.  Automatically test your WordPress forms to ensure you never miss a lead again.
    14  * Version:           2.0.10
     14 * Version:           2.0.11
    1515 * Author:            CheckView
    1616 * Author URI:        https://checkview.io/
     
    3636 * @link https://semver.org
    3737 */
    38 define( 'CHECKVIEW_VERSION', '2.0.10' );
     38define( 'CHECKVIEW_VERSION', '2.0.11' );
    3939
    4040if ( ! defined( 'CHECKVIEW_BASE_DIR' ) ) {
  • checkview/trunk/includes/API/class-checkview-api.php

    r3216431 r3236719  
    19821982        }
    19831983
    1984         if ( $forms && ! empty( $forms ) && false !== $forms && '' !== $forms ) {
    1985             set_transient( 'checkview_forms_list_transient', $forms, 12 * HOUR_IN_SECONDS );
     1984        if ( is_array( $forms ) ) {
     1985            if ( ! empty( $forms ) ) {
     1986                set_transient( 'checkview_forms_list_transient', $forms, 12 * HOUR_IN_SECONDS );
     1987            }
     1988
    19861989            return new WP_REST_Response(
    19871990                array(
  • checkview/trunk/includes/class-checkview.php

    r3227063 r3236719  
    7171            $this->version = CHECKVIEW_VERSION;
    7272        } else {
    73             $this->version = '2.0.10';
     73            $this->version = '2.0.11';
    7474        }
    7575        $this->plugin_name = 'checkview';
     
    139139        if ( ( 'checkview-saas' === get_option( $visitor_ip ) || isset( $_REQUEST['checkview_test_id'] ) || ( is_array( $cv_bot_ip ) && in_array( $visitor_ip, $cv_bot_ip ) ) ) ) {
    140140            update_option( $visitor_ip, 'checkview-saas', true );
    141             if ( class_exists( 'WooCommerce' ) ) {
    142                 require_once plugin_dir_path( __DIR__ ) . 'includes/woocommercehelper/class-checkview-woo-automated-testing.php';
    143                 $woo_helper = new Checkview_Woo_Automated_Testing( $this->get_plugin_name(), $this->get_version(), $this->loader );
    144             }
     141        }
     142        if ( class_exists( 'WooCommerce' ) ) {
     143            require_once plugin_dir_path( __DIR__ ) . 'includes/woocommercehelper/class-checkview-woo-automated-testing.php';
     144            $woo_helper = new Checkview_Woo_Automated_Testing( $this->get_plugin_name(), $this->get_version(), $this->loader );
    145145        }
    146146        $this->loader->add_filter(
  • checkview/trunk/includes/formhelpers/class-checkview-formidable-helper.php

    r3216431 r3236719  
    310310            $tablename   = $wpdb->prefix . 'frm_fields';
    311311            $fields_data = $wpdb->get_results( $wpdb->prepare( 'Select * from ' . $tablename . ' where form_id=%d', $form_id ) );
    312             if ( $fields_data ) {
     312            if ( ! empty( $fields_data ) && is_array( $fields_data ) ) {
    313313                foreach ( $fields_data as $field ) {
    314314                    $type     = $field->type;
     
    379379                            $field_options = maybe_unserialize( $field->options );
    380380                            foreach ( $field_options as $key => $val ) {
    381                                 $field_options[ $key ]['field_id'] = $field_id . '-' . $key;
     381                                // Ensure the current value is an array.
     382                                if ( is_array( $val ) ) {
     383                                    $field_options[ $key ]['field_id'] = $field_id . '-' . $key;
     384                                } else {
     385                                    error_log( "Non-array value detected in field_options for key '{$field_id }': " . print_r( $val, true ) );
     386                                }
    382387                            }
    383388                            $fields[ $field->id ] = array(
  • checkview/trunk/includes/woocommercehelper/class-checkview-blocks-payment-gateway.php

    r3227063 r3236719  
    6969            : array(
    7070                'dependencies' => array(),
    71                 'version'      => '2.0.10',
     71                'version'      => '2.0.11',
    7272            );
    7373        $script_url        = CHECKVIEW_URI . $script_path;
  • checkview/trunk/includes/woocommercehelper/class-checkview-woo-automated-testing.php

    r3216431 r3236719  
    204204        }
    205205
    206         add_filter( 'wp_mail', array( $this, 'checkview_filter_wp_mail' ), 99 );
     206        // add_filter( 'wp_mail', array( $this, 'checkview_filter_wp_mail' ), 99 );
    207207        $this->checkview_test_mode();
    208208    }
Note: See TracChangeset for help on using the changeset viewer.