Changeset 3387165
- Timestamp:
- 10/30/2025 03:30:27 PM (4 months ago)
- Location:
- checkview
- Files:
-
- 8 edited
- 1 copied
-
tags/2.0.22 (copied) (copied from checkview/trunk)
-
tags/2.0.22/README.txt (modified) (3 diffs)
-
tags/2.0.22/checkview.php (modified) (2 diffs)
-
tags/2.0.22/includes/class-checkview.php (modified) (1 diff)
-
tags/2.0.22/includes/formhelpers/class-checkview-cf7-helper.php (modified) (2 diffs)
-
trunk/README.txt (modified) (3 diffs)
-
trunk/checkview.php (modified) (2 diffs)
-
trunk/includes/class-checkview.php (modified) (1 diff)
-
trunk/includes/formhelpers/class-checkview-cf7-helper.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
checkview/tags/2.0.22/README.txt
r3375260 r3387165 8 8 License: GPLv3 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html 10 Stable tag: 2.0.2 110 Stable tag: 2.0.22 11 11 12 12 [CheckView](https://checkview.io/) is the friendly WordPress automated testing platform for everyone, from developers, shop owners to agencies. … … 86 86 87 87 == Changelog == 88 = 2.0.22 = 89 * Handle CF7 piped value mismatches. 90 88 91 = 2.0.21 = 89 92 * Handle errors when setting up logs folder. … … 382 385 383 386 == Upgrade Notice == 387 = 2.0.22 = 388 * Handle CF7 piped value mismatches. 389 384 390 = 2.0.21 = 385 391 * Handle errors when setting up logs folder. -
checkview/tags/2.0.22/checkview.php
r3375260 r3387165 12 12 * Plugin URI: https://checkview.io 13 13 * 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.2 114 * Version: 2.0.22 15 15 * Author: CheckView 16 16 * Author URI: https://checkview.io/ … … 36 36 * @link https://semver.org 37 37 */ 38 define( 'CHECKVIEW_VERSION', '2.0.2 1' );38 define( 'CHECKVIEW_VERSION', '2.0.22' ); 39 39 40 40 if ( ! defined( 'CHECKVIEW_BASE_DIR' ) ) { -
checkview/tags/2.0.22/includes/class-checkview.php
r3375260 r3387165 81 81 $this->version = CHECKVIEW_VERSION; 82 82 } else { 83 $this->version = '2.0.2 1';83 $this->version = '2.0.22'; 84 84 } 85 85 $this->plugin_name = 'checkview'; -
checkview/tags/2.0.22/includes/formhelpers/class-checkview-cf7-helper.php
r3323842 r3387165 116 116 99 117 117 ); 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); 118 124 } 119 125 … … 316 322 return $cases; 317 323 } 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 } 318 349 } 319 350 -
checkview/trunk/README.txt
r3375260 r3387165 8 8 License: GPLv3 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html 10 Stable tag: 2.0.2 110 Stable tag: 2.0.22 11 11 12 12 [CheckView](https://checkview.io/) is the friendly WordPress automated testing platform for everyone, from developers, shop owners to agencies. … … 86 86 87 87 == Changelog == 88 = 2.0.22 = 89 * Handle CF7 piped value mismatches. 90 88 91 = 2.0.21 = 89 92 * Handle errors when setting up logs folder. … … 382 385 383 386 == Upgrade Notice == 387 = 2.0.22 = 388 * Handle CF7 piped value mismatches. 389 384 390 = 2.0.21 = 385 391 * Handle errors when setting up logs folder. -
checkview/trunk/checkview.php
r3375260 r3387165 12 12 * Plugin URI: https://checkview.io 13 13 * 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.2 114 * Version: 2.0.22 15 15 * Author: CheckView 16 16 * Author URI: https://checkview.io/ … … 36 36 * @link https://semver.org 37 37 */ 38 define( 'CHECKVIEW_VERSION', '2.0.2 1' );38 define( 'CHECKVIEW_VERSION', '2.0.22' ); 39 39 40 40 if ( ! defined( 'CHECKVIEW_BASE_DIR' ) ) { -
checkview/trunk/includes/class-checkview.php
r3375260 r3387165 81 81 $this->version = CHECKVIEW_VERSION; 82 82 } else { 83 $this->version = '2.0.2 1';83 $this->version = '2.0.22'; 84 84 } 85 85 $this->plugin_name = 'checkview'; -
checkview/trunk/includes/formhelpers/class-checkview-cf7-helper.php
r3323842 r3387165 116 116 99 117 117 ); 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); 118 124 } 119 125 … … 316 322 return $cases; 317 323 } 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 } 318 349 } 319 350
Note: See TracChangeset
for help on using the changeset viewer.