Changeset 3046979
- Timestamp:
- 03/07/2024 11:55:21 AM (12 months ago)
- Location:
- wp-sendfox
- Files:
-
- 20 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
wp-sendfox/trunk/readme.txt
r2998124 r3046979 6 6 Tested up to: 6.4 7 7 Requires PHP: 5.2.4 8 Stable tag: 1.3. 08 Stable tag: 1.3.1 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 56 56 == Changelog == 57 57 58 = 1.3.1 = 59 * feature: support for WooCommerce HPOS; 60 * tweak: improved Access Control for gb_sf4wp_process_sync() (Big thanks to Abdi Pranata); 61 58 62 = 1.3.0 = 59 63 * integration: LearnDash Course Enrollment (Big thanks to Rodolfo Martinez!); -
wp-sendfox/trunk/wp-sendfox-admin.php
r2998124 r3046979 882 882 stage: 1, 883 883 list: list, 884 mode: mode 884 mode: mode, 885 nonce: '<?php echo wp_create_nonce('sf4wp-sync-nonce'); ?>' 885 886 }; 886 887 -
wp-sendfox/trunk/wp-sendfox.php
r2998124 r3046979 6 6 Author: BogdanFix 7 7 Author URI: https://bogdanfix.com/ 8 Version: 1.3. 08 Version: 1.3.1 9 9 Text Domain: sf4wp 10 10 Domain Path: /lang … … 16 16 17 17 define( 'GB_SF4WP_NAME', 'SendFox for WordPress' ); 18 define( 'GB_SF4WP_VER', '1.3. 0' );18 define( 'GB_SF4WP_VER', '1.3.1' ); 19 19 define( 'GB_SF4WP_ID', 'wp-sendfox' ); 20 20 … … 79 79 } 80 80 } 81 82 // declare WooCommerce HPOS support83 84 add_action( 'before_woocommerce_init', function() {85 if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) {86 \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true );87 }88 } );89 81 } 90 82 add_action( 'init', 'gb_sf4wp_init' ); 83 84 // declare WooCommerce HPOS support 85 86 add_action( 'before_woocommerce_init', function() { 87 if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) { 88 \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true ); 89 } 90 } ); 91 91 92 92 /** … … 908 908 $result = array( 'result' => 'error' ); 909 909 910 if( !wp_verify_nonce( $_POST['nonce'], 'sf4wp-sync-nonce' ) ) 911 { 912 $result['error_text'] = 'nonce error'; 913 914 echo json_encode( $result ); 915 916 wp_die(); 917 } 918 919 if( !current_user_can( 'manage_options' ) ) 920 { 921 $result['error_text'] = 'user role error'; 922 923 echo json_encode( $result ); 924 925 wp_die(); 926 } 927 910 928 if( 911 929 !empty( $_POST['stage'] ) && … … 935 953 else 936 954 { 937 $res ponse['error_text'] = 'count users error';955 $result['error_text'] = 'count users error'; 938 956 } 939 957 } … … 980 998 else 981 999 { 982 $res ponse['error_text'] = 'count customers error';1000 $result['error_text'] = 'count customers error'; 983 1001 } 984 1002 } 985 1003 else 986 1004 { 987 $res ponse['error_text'] = 'mode error';1005 $result['error_text'] = 'mode error'; 988 1006 } 989 1007 } … … 1067 1085 else 1068 1086 { 1069 $res ponse['error_text'] = 'get users error';1087 $result['error_text'] = 'get users error'; 1070 1088 } 1071 1089 } … … 1169 1187 else 1170 1188 { 1171 $res ponse['error_text'] = 'get customers error';1189 $result['error_text'] = 'get customers error'; 1172 1190 } 1173 1191 } 1174 1192 else 1175 1193 { 1176 $res ponse['error_text'] = 'mode error';1194 $result['error_text'] = 'mode error'; 1177 1195 } 1178 1196 } 1179 1197 else 1180 1198 { 1181 $res ponse['error_text'] = 'stage error';1199 $result['error_text'] = 'stage error'; 1182 1200 } 1183 1201 } 1184 1202 else 1185 1203 { 1186 $res ponse['error_text'] = 'request error';1204 $result['error_text'] = 'request error'; 1187 1205 } 1188 1206
Note: See TracChangeset
for help on using the changeset viewer.