Plugin Directory

Changeset 3387165


Ignore:
Timestamp:
10/30/2025 03:30:27 PM (4 months ago)
Author:
checkview
Message:

Update to version 2.0.22 from GitHub

Location:
checkview
Files:
8 edited
1 copied

Legend:

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

    r3375260 r3387165  
    88License: GPLv3
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
    10 Stable tag: 2.0.21
     10Stable tag: 2.0.22
    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.22 =
     89* Handle CF7 piped value mismatches.
     90
    8891= 2.0.21 =
    8992* Handle errors when setting up logs folder.
     
    382385
    383386== Upgrade Notice ==
     387= 2.0.22 =
     388* Handle CF7 piped value mismatches.
     389
    384390= 2.0.21 =
    385391* Handle errors when setting up logs folder.
  • checkview/tags/2.0.22/checkview.php

    r3375260 r3387165  
    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.21
     14 * Version:           2.0.22
    1515 * Author:            CheckView
    1616 * Author URI:        https://checkview.io/
     
    3636 * @link https://semver.org
    3737 */
    38 define( 'CHECKVIEW_VERSION', '2.0.21' );
     38define( 'CHECKVIEW_VERSION', '2.0.22' );
    3939
    4040if ( ! defined( 'CHECKVIEW_BASE_DIR' ) ) {
  • checkview/tags/2.0.22/includes/class-checkview.php

    r3375260 r3387165  
    8181            $this->version = CHECKVIEW_VERSION;
    8282        } else {
    83             $this->version = '2.0.21';
     83            $this->version = '2.0.22';
    8484        }
    8585        $this->plugin_name = 'checkview';
  • checkview/tags/2.0.22/includes/formhelpers/class-checkview-cf7-helper.php

    r3323842 r3387165  
    116116                99
    117117            );
     118
     119            // Set Piped values back to original values for required select fields
     120            add_filter('wpcf7_posted_data_select*', array($this, 'checkview_handled_cf7_piped_data'), 99, 3);
     121
     122            // Set Piped values back to original values for optional select fields
     123            add_filter('wpcf7_posted_data_select', array($this, 'checkview_handled_cf7_piped_data'), 99, 3);
    118124        }
    119125
     
    316322            return $cases;
    317323        }
     324
     325        /**
     326         * Assign original data instead of piped data to fields during CF7 submissions.
     327         *
     328         * @since 2.0.22
     329         *
     330         * @param array|mixed|string $value Piped value.
     331         * @param array|mixed|string $value_orig Original value.
     332         * @param mixed $tag Tag.
     333         *
     334         * @return array|mixed|string
     335         */
     336        public function checkview_handled_cf7_piped_data( $value, $value_orig, $tag ) {
     337            if ( ! is_array( $value ) || ! is_string( $value[0]) || ! is_string( $value_orig ) ) {
     338                return $value;
     339            }
     340
     341            if ($value[0] !== $value_orig) {
     342                Checkview_Admin_Logs::add( 'api-logs', 'Detected piped CF7 select field, restoring original value.' );
     343
     344                return $value_orig;
     345            }
     346
     347            return $value;
     348        }
    318349    }
    319350
  • checkview/trunk/README.txt

    r3375260 r3387165  
    88License: GPLv3
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
    10 Stable tag: 2.0.21
     10Stable tag: 2.0.22
    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.22 =
     89* Handle CF7 piped value mismatches.
     90
    8891= 2.0.21 =
    8992* Handle errors when setting up logs folder.
     
    382385
    383386== Upgrade Notice ==
     387= 2.0.22 =
     388* Handle CF7 piped value mismatches.
     389
    384390= 2.0.21 =
    385391* Handle errors when setting up logs folder.
  • checkview/trunk/checkview.php

    r3375260 r3387165  
    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.21
     14 * Version:           2.0.22
    1515 * Author:            CheckView
    1616 * Author URI:        https://checkview.io/
     
    3636 * @link https://semver.org
    3737 */
    38 define( 'CHECKVIEW_VERSION', '2.0.21' );
     38define( 'CHECKVIEW_VERSION', '2.0.22' );
    3939
    4040if ( ! defined( 'CHECKVIEW_BASE_DIR' ) ) {
  • checkview/trunk/includes/class-checkview.php

    r3375260 r3387165  
    8181            $this->version = CHECKVIEW_VERSION;
    8282        } else {
    83             $this->version = '2.0.21';
     83            $this->version = '2.0.22';
    8484        }
    8585        $this->plugin_name = 'checkview';
  • checkview/trunk/includes/formhelpers/class-checkview-cf7-helper.php

    r3323842 r3387165  
    116116                99
    117117            );
     118
     119            // Set Piped values back to original values for required select fields
     120            add_filter('wpcf7_posted_data_select*', array($this, 'checkview_handled_cf7_piped_data'), 99, 3);
     121
     122            // Set Piped values back to original values for optional select fields
     123            add_filter('wpcf7_posted_data_select', array($this, 'checkview_handled_cf7_piped_data'), 99, 3);
    118124        }
    119125
     
    316322            return $cases;
    317323        }
     324
     325        /**
     326         * Assign original data instead of piped data to fields during CF7 submissions.
     327         *
     328         * @since 2.0.22
     329         *
     330         * @param array|mixed|string $value Piped value.
     331         * @param array|mixed|string $value_orig Original value.
     332         * @param mixed $tag Tag.
     333         *
     334         * @return array|mixed|string
     335         */
     336        public function checkview_handled_cf7_piped_data( $value, $value_orig, $tag ) {
     337            if ( ! is_array( $value ) || ! is_string( $value[0]) || ! is_string( $value_orig ) ) {
     338                return $value;
     339            }
     340
     341            if ($value[0] !== $value_orig) {
     342                Checkview_Admin_Logs::add( 'api-logs', 'Detected piped CF7 select field, restoring original value.' );
     343
     344                return $value_orig;
     345            }
     346
     347            return $value;
     348        }
    318349    }
    319350
Note: See TracChangeset for help on using the changeset viewer.