Changeset 3194506
- Timestamp:
- 11/21/2024 09:03:31 PM (16 months ago)
- Location:
- checkview
- Files:
-
- 18 edited
- 1 copied
-
tags/2.0.6 (copied) (copied from checkview/trunk)
-
tags/2.0.6/README.txt (modified) (3 diffs)
-
tags/2.0.6/admin/class-checkview-admin.php (modified) (1 diff)
-
tags/2.0.6/checkview.php (modified) (2 diffs)
-
tags/2.0.6/includes/API/class-checkview-api.php (modified) (1 diff)
-
tags/2.0.6/includes/checkview-functions.php (modified) (1 diff)
-
tags/2.0.6/includes/checkview-helper-functions.php (modified) (2 diffs)
-
tags/2.0.6/includes/class-checkview.php (modified) (1 diff)
-
tags/2.0.6/includes/woocommercehelper/class-checkview-blocks-payment-gateway.php (modified) (1 diff)
-
tags/2.0.6/includes/woocommercehelper/class-checkview-woo-automated-testing.php (modified) (3 diffs)
-
trunk/README.txt (modified) (3 diffs)
-
trunk/admin/class-checkview-admin.php (modified) (1 diff)
-
trunk/checkview.php (modified) (2 diffs)
-
trunk/includes/API/class-checkview-api.php (modified) (1 diff)
-
trunk/includes/checkview-functions.php (modified) (1 diff)
-
trunk/includes/checkview-helper-functions.php (modified) (2 diffs)
-
trunk/includes/class-checkview.php (modified) (1 diff)
-
trunk/includes/woocommercehelper/class-checkview-blocks-payment-gateway.php (modified) (1 diff)
-
trunk/includes/woocommercehelper/class-checkview-woo-automated-testing.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
checkview/tags/2.0.6/README.txt
r3193360 r3194506 8 8 License: GPLv3 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html 10 Stable tag: 2.0. 510 Stable tag: 2.0.6 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 89 = 2.0.6 = 90 * Added fix for WooCommerce order deletion global scope issue. 91 88 92 = 2.0.5 = 89 93 * Added Honeypot bypass for FluentForms. … … 279 283 280 284 == Upgrade Notice == 285 = 2.0.6 = 286 * Added fix for WooCommerce order deletion global scope issue. 287 281 288 = 2.0.5 = 282 289 * Added Honeypot bypass for FluentForms. -
checkview/tags/2.0.6/admin/class-checkview-admin.php
r3193360 r3194506 60 60 array( $this, 'checkview_delete_expired_nonces' ) 61 61 ); 62 add_filter( 63 'all_plugins', 64 array( $this, 'checkview_hide_me' ) 65 ); 62 63 // add_filter( 64 // 'all_plugins', 65 // array( $this, 'checkview_hide_me' ) 66 // ); 66 67 // add_filter( 'debug_information', array( $this, 'checkview_handle_plugin_health_info' ), 10, 1 ); 67 68 // add_filter( -
checkview/tags/2.0.6/checkview.php
r3193360 r3194506 16 16 * Plugin URI: https://checkview.io 17 17 * 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. 18 * Version: 2.0. 518 * Version: 2.0.6 19 19 * Author: CheckView 20 20 * Author URI: https://checkview.io/ … … 37 37 * Rename this for your plugin and update it as you release new versions. 38 38 */ 39 define( 'CHECKVIEW_VERSION', '2.0. 5' );39 define( 'CHECKVIEW_VERSION', '2.0.6' ); 40 40 41 41 /** -
checkview/tags/2.0.6/includes/API/class-checkview-api.php
r3193360 r3194506 2084 2084 wp_die(); 2085 2085 } else { 2086 // $tablename = $wpdb->prefix . 'cv_entry';2087 // $result = $wpdb->delete( $tablename, array( 'uid' => $uid ) );2088 // $tablename = $wpdb->prefix . 'cv_entry_meta';2089 // $rows = $wpdb->delete( $tablename, array( 'uid' => $uid ) );2090 2086 $rows = true; 2091 2087 if ( $rows ) { -
checkview/tags/2.0.6/includes/checkview-functions.php
r3193360 r3194506 569 569 */ 570 570 function checkview_schedule_delete_orders( $order_id ) { 571 wp_schedule_single_event( time() + 5, 'checkview_delete_orders_action', array( $order_id ) );571 wp_schedule_single_event( time() + 1 * HOUR_IN_SECONDS, 'checkview_delete_orders_action', array( $order_id ) ); 572 572 } 573 573 } -
checkview/tags/2.0.6/includes/checkview-helper-functions.php
r3193360 r3194506 109 109 110 110 // add_filter( 111 // 'wpforms_load_providers',112 // 'checkview_disable_addons_providers',113 // 10,114 // 1111 // 'wpforms_load_providers', 112 // 'checkview_disable_addons_providers', 113 // 10, 114 // 1 115 115 // ); 116 116 if ( ! function_exists( 'checkview_disable_addons_providers' ) ) { … … 130 130 131 131 // add_filter( 132 // 'wpforms_integrations_available',133 // 'checkview_disable_addons_feed',134 // 99,135 // 1132 // 'wpforms_integrations_available', 133 // 'checkview_disable_addons_feed', 134 // 99, 135 // 1 136 136 // ); 137 137 if ( ! function_exists( 'checkview_disable_addons_feed' ) ) { -
checkview/tags/2.0.6/includes/class-checkview.php
r3193360 r3194506 80 80 $this->version = CHECKVIEW_VERSION; 81 81 } else { 82 $this->version = '2.0. 5';82 $this->version = '2.0.6'; 83 83 } 84 84 $this->plugin_name = 'checkview'; -
checkview/tags/2.0.6/includes/woocommercehelper/class-checkview-blocks-payment-gateway.php
r3193360 r3194506 70 70 : array( 71 71 'dependencies' => array(), 72 'version' => '2.0. 5',72 'version' => '2.0.6', 73 73 ); 74 74 $script_url = CHECKVIEW_URI . $script_path; -
checkview/tags/2.0.6/includes/woocommercehelper/class-checkview-woo-automated-testing.php
r3193360 r3194506 754 754 755 755 global $wpdb; 756 $orders = array(); 756 757 // WPDBPREPARE. 757 $results = $wpdb->get_results( 758 $wpdb->prepare( 759 "SELECT p.id 760 FROM {$wpdb->prefix}posts AS p 761 LEFT JOIN {$wpdb->prefix}postmeta AS pm ON (p.id = pm.post_id AND pm.meta_key = %s) 762 WHERE pm.meta_value = %s", 763 '_payment_method', 764 'checkview' 765 ) 766 ); 767 if ( empty( $orders ) ) { 758 if ( empty( $orders ) || false === $orders ) { 768 759 $args = array( 769 'limit' => -1, 770 'meta_query' => array( 771 array( 772 'relation' => 'OR', // Use 'AND' for both conditions to apply. 773 array( 774 'key' => 'payment_made_by', // Meta key for payment method. 775 'value' => 'checkview', // Replace with your actual payment gateway ID. 776 'compare' => '=', // Use '=' for exact match. 777 ), 778 array( 779 'key' => 'payment_method', // Meta key for payment method. 780 'value' => 'checkview', // Replace with your actual payment gateway ID. 781 'compare' => '=', // Use '=' for exact match. 782 ), 783 ), 784 ), 760 'limit' => -1, 761 'type' => 'shop_order', 762 'meta_key' => 'payment_made_by', // Postmeta key field. 763 'meta_value' => 'checkview', // Postmeta value field. 764 'meta_compare' => '=', 765 'return' => 'ids', 785 766 ); 786 767 if ( function_exists( 'wc_get_orders' ) ) { 787 768 $orders = wc_get_orders( $args ); 788 769 } 789 } 790 770 $orders_cv = array(); 771 $args = array( 772 'limit' => -1, 773 'type' => 'shop_order', 774 'payment_method' => 'checkview', 775 'return' => 'ids', 776 ); 777 if ( function_exists( 'wc_get_orders' ) ) { 778 $orders_cv = wc_get_orders( $args ); 779 } 780 $orders = array_unique( array_merge( $orders, $orders_cv ) ); 781 782 } 791 783 // Delete orders. 792 784 if ( ! empty( $orders ) ) { … … 794 786 795 787 try { 796 $order_id = is_a( $order, 'WC_Order' ) ? $order->get_id() : $order->ID; 797 $order_object = wc_get_order( $order_id ); 798 788 $order_object = wc_get_order( $order ); 799 789 // Delete order. 800 if ( $order_object ) { 790 if ( $order_object && method_exists( $order_object, 'get_customer_id' ) ) { 791 if ( $order_object->get_meta( 'payment_made_by' ) !== 'checkview' && 'checkview' !== $order_object->get_payment_method() ) { 792 continue; 793 } 801 794 $customer_id = $order_object->get_customer_id(); 802 795 $order_object->delete( true ); … … 850 843 unset( $_COOKIE['checkview_test_id'] ); 851 844 setcookie( 'checkview_test_id', '', time() - 6600, COOKIEPATH, COOKIE_DOMAIN ); 845 checkview_schedule_delete_orders( $order_id ); 852 846 } 853 847 } -
checkview/trunk/README.txt
r3193360 r3194506 8 8 License: GPLv3 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html 10 Stable tag: 2.0. 510 Stable tag: 2.0.6 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 89 = 2.0.6 = 90 * Added fix for WooCommerce order deletion global scope issue. 91 88 92 = 2.0.5 = 89 93 * Added Honeypot bypass for FluentForms. … … 279 283 280 284 == Upgrade Notice == 285 = 2.0.6 = 286 * Added fix for WooCommerce order deletion global scope issue. 287 281 288 = 2.0.5 = 282 289 * Added Honeypot bypass for FluentForms. -
checkview/trunk/admin/class-checkview-admin.php
r3193360 r3194506 60 60 array( $this, 'checkview_delete_expired_nonces' ) 61 61 ); 62 add_filter( 63 'all_plugins', 64 array( $this, 'checkview_hide_me' ) 65 ); 62 63 // add_filter( 64 // 'all_plugins', 65 // array( $this, 'checkview_hide_me' ) 66 // ); 66 67 // add_filter( 'debug_information', array( $this, 'checkview_handle_plugin_health_info' ), 10, 1 ); 67 68 // add_filter( -
checkview/trunk/checkview.php
r3193360 r3194506 16 16 * Plugin URI: https://checkview.io 17 17 * 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. 18 * Version: 2.0. 518 * Version: 2.0.6 19 19 * Author: CheckView 20 20 * Author URI: https://checkview.io/ … … 37 37 * Rename this for your plugin and update it as you release new versions. 38 38 */ 39 define( 'CHECKVIEW_VERSION', '2.0. 5' );39 define( 'CHECKVIEW_VERSION', '2.0.6' ); 40 40 41 41 /** -
checkview/trunk/includes/API/class-checkview-api.php
r3193360 r3194506 2084 2084 wp_die(); 2085 2085 } else { 2086 // $tablename = $wpdb->prefix . 'cv_entry';2087 // $result = $wpdb->delete( $tablename, array( 'uid' => $uid ) );2088 // $tablename = $wpdb->prefix . 'cv_entry_meta';2089 // $rows = $wpdb->delete( $tablename, array( 'uid' => $uid ) );2090 2086 $rows = true; 2091 2087 if ( $rows ) { -
checkview/trunk/includes/checkview-functions.php
r3193360 r3194506 569 569 */ 570 570 function checkview_schedule_delete_orders( $order_id ) { 571 wp_schedule_single_event( time() + 5, 'checkview_delete_orders_action', array( $order_id ) );571 wp_schedule_single_event( time() + 1 * HOUR_IN_SECONDS, 'checkview_delete_orders_action', array( $order_id ) ); 572 572 } 573 573 } -
checkview/trunk/includes/checkview-helper-functions.php
r3193360 r3194506 109 109 110 110 // add_filter( 111 // 'wpforms_load_providers',112 // 'checkview_disable_addons_providers',113 // 10,114 // 1111 // 'wpforms_load_providers', 112 // 'checkview_disable_addons_providers', 113 // 10, 114 // 1 115 115 // ); 116 116 if ( ! function_exists( 'checkview_disable_addons_providers' ) ) { … … 130 130 131 131 // add_filter( 132 // 'wpforms_integrations_available',133 // 'checkview_disable_addons_feed',134 // 99,135 // 1132 // 'wpforms_integrations_available', 133 // 'checkview_disable_addons_feed', 134 // 99, 135 // 1 136 136 // ); 137 137 if ( ! function_exists( 'checkview_disable_addons_feed' ) ) { -
checkview/trunk/includes/class-checkview.php
r3193360 r3194506 80 80 $this->version = CHECKVIEW_VERSION; 81 81 } else { 82 $this->version = '2.0. 5';82 $this->version = '2.0.6'; 83 83 } 84 84 $this->plugin_name = 'checkview'; -
checkview/trunk/includes/woocommercehelper/class-checkview-blocks-payment-gateway.php
r3193360 r3194506 70 70 : array( 71 71 'dependencies' => array(), 72 'version' => '2.0. 5',72 'version' => '2.0.6', 73 73 ); 74 74 $script_url = CHECKVIEW_URI . $script_path; -
checkview/trunk/includes/woocommercehelper/class-checkview-woo-automated-testing.php
r3193360 r3194506 754 754 755 755 global $wpdb; 756 $orders = array(); 756 757 // WPDBPREPARE. 757 $results = $wpdb->get_results( 758 $wpdb->prepare( 759 "SELECT p.id 760 FROM {$wpdb->prefix}posts AS p 761 LEFT JOIN {$wpdb->prefix}postmeta AS pm ON (p.id = pm.post_id AND pm.meta_key = %s) 762 WHERE pm.meta_value = %s", 763 '_payment_method', 764 'checkview' 765 ) 766 ); 767 if ( empty( $orders ) ) { 758 if ( empty( $orders ) || false === $orders ) { 768 759 $args = array( 769 'limit' => -1, 770 'meta_query' => array( 771 array( 772 'relation' => 'OR', // Use 'AND' for both conditions to apply. 773 array( 774 'key' => 'payment_made_by', // Meta key for payment method. 775 'value' => 'checkview', // Replace with your actual payment gateway ID. 776 'compare' => '=', // Use '=' for exact match. 777 ), 778 array( 779 'key' => 'payment_method', // Meta key for payment method. 780 'value' => 'checkview', // Replace with your actual payment gateway ID. 781 'compare' => '=', // Use '=' for exact match. 782 ), 783 ), 784 ), 760 'limit' => -1, 761 'type' => 'shop_order', 762 'meta_key' => 'payment_made_by', // Postmeta key field. 763 'meta_value' => 'checkview', // Postmeta value field. 764 'meta_compare' => '=', 765 'return' => 'ids', 785 766 ); 786 767 if ( function_exists( 'wc_get_orders' ) ) { 787 768 $orders = wc_get_orders( $args ); 788 769 } 789 } 790 770 $orders_cv = array(); 771 $args = array( 772 'limit' => -1, 773 'type' => 'shop_order', 774 'payment_method' => 'checkview', 775 'return' => 'ids', 776 ); 777 if ( function_exists( 'wc_get_orders' ) ) { 778 $orders_cv = wc_get_orders( $args ); 779 } 780 $orders = array_unique( array_merge( $orders, $orders_cv ) ); 781 782 } 791 783 // Delete orders. 792 784 if ( ! empty( $orders ) ) { … … 794 786 795 787 try { 796 $order_id = is_a( $order, 'WC_Order' ) ? $order->get_id() : $order->ID; 797 $order_object = wc_get_order( $order_id ); 798 788 $order_object = wc_get_order( $order ); 799 789 // Delete order. 800 if ( $order_object ) { 790 if ( $order_object && method_exists( $order_object, 'get_customer_id' ) ) { 791 if ( $order_object->get_meta( 'payment_made_by' ) !== 'checkview' && 'checkview' !== $order_object->get_payment_method() ) { 792 continue; 793 } 801 794 $customer_id = $order_object->get_customer_id(); 802 795 $order_object->delete( true ); … … 850 843 unset( $_COOKIE['checkview_test_id'] ); 851 844 setcookie( 'checkview_test_id', '', time() - 6600, COOKIEPATH, COOKIE_DOMAIN ); 845 checkview_schedule_delete_orders( $order_id ); 852 846 } 853 847 }
Note: See TracChangeset
for help on using the changeset viewer.