Changeset 3478438
- Timestamp:
- 03/09/2026 06:26:05 PM (3 weeks ago)
- Location:
- sendbox-shipping
- Files:
-
- 34 deleted
- 14 edited
- 16 copied
-
tags/5.5.2 (copied) (copied from sendbox-shipping/trunk)
-
tags/5.5.2/README.md (copied) (copied from sendbox-shipping/trunk/README.md)
-
tags/5.5.2/README.txt (copied) (copied from sendbox-shipping/trunk/README.txt) (1 diff)
-
tags/5.5.2/admin/class-wooss-admin.php (deleted)
-
tags/5.5.2/admin/css (deleted)
-
tags/5.5.2/admin/images (deleted)
-
tags/5.5.2/admin/js (deleted)
-
tags/5.5.2/admin/partials (deleted)
-
tags/5.5.2/assets (copied) (copied from sendbox-shipping/trunk/assets)
-
tags/5.5.2/assets/js/admin-settings.js (modified) (1 diff)
-
tags/5.5.2/includes/assets (deleted)
-
tags/5.5.2/includes/class-wooss-activator.php (deleted)
-
tags/5.5.2/includes/class-wooss-deactivator.php (deleted)
-
tags/5.5.2/includes/class-wooss-i18n.php (deleted)
-
tags/5.5.2/includes/class-wooss-loader.php (deleted)
-
tags/5.5.2/includes/class-wooss-sendbox-shipping-api.php (deleted)
-
tags/5.5.2/includes/class-wooss-shipping-method.php (deleted)
-
tags/5.5.2/includes/class-wooss.php (deleted)
-
tags/5.5.2/public/class-wooss-public.php (deleted)
-
tags/5.5.2/public/css (deleted)
-
tags/5.5.2/public/js (deleted)
-
tags/5.5.2/public/partials (deleted)
-
tags/5.5.2/src (copied) (copied from sendbox-shipping/trunk/src)
-
tags/5.5.2/src/Admin/Ajax.php (modified) (1 diff)
-
tags/5.5.2/src/Admin/SettingsPage.php (modified) (1 diff)
-
tags/5.5.2/src/Plugin.php (modified) (1 diff)
-
tags/5.5.2/trunk (copied) (copied from sendbox-shipping/trunk)
-
tags/5.5.2/trunk/README.md (copied) (copied from sendbox-shipping/trunk/README.md)
-
tags/5.5.2/trunk/README.txt (copied) (copied from sendbox-shipping/trunk/README.txt) (1 diff)
-
tags/5.5.2/trunk/admin/class-wooss-admin.php (deleted)
-
tags/5.5.2/trunk/admin/css (deleted)
-
tags/5.5.2/trunk/admin/images (deleted)
-
tags/5.5.2/trunk/admin/js (deleted)
-
tags/5.5.2/trunk/admin/partials (deleted)
-
tags/5.5.2/trunk/assets (copied) (copied from sendbox-shipping/trunk/assets)
-
tags/5.5.2/trunk/assets/js/admin-settings.js (modified) (1 diff)
-
tags/5.5.2/trunk/includes/assets (deleted)
-
tags/5.5.2/trunk/includes/class-wooss-activator.php (deleted)
-
tags/5.5.2/trunk/includes/class-wooss-deactivator.php (deleted)
-
tags/5.5.2/trunk/includes/class-wooss-i18n.php (deleted)
-
tags/5.5.2/trunk/includes/class-wooss-loader.php (deleted)
-
tags/5.5.2/trunk/includes/class-wooss-sendbox-shipping-api.php (deleted)
-
tags/5.5.2/trunk/includes/class-wooss-shipping-method.php (deleted)
-
tags/5.5.2/trunk/includes/class-wooss.php (deleted)
-
tags/5.5.2/trunk/public/class-wooss-public.php (deleted)
-
tags/5.5.2/trunk/public/css (deleted)
-
tags/5.5.2/trunk/public/js (deleted)
-
tags/5.5.2/trunk/public/partials (deleted)
-
tags/5.5.2/trunk/src (copied) (copied from sendbox-shipping/trunk/src)
-
tags/5.5.2/trunk/src/Admin/Ajax.php (modified) (1 diff)
-
tags/5.5.2/trunk/src/Admin/SettingsPage.php (modified) (1 diff)
-
tags/5.5.2/trunk/src/Plugin.php (modified) (1 diff)
-
tags/5.5.2/trunk/uninstall.php (copied) (copied from sendbox-shipping/trunk/uninstall.php)
-
tags/5.5.2/trunk/wooss-reset.php (copied) (copied from sendbox-shipping/trunk/wooss-reset.php)
-
tags/5.5.2/trunk/wooss.php (copied) (copied from sendbox-shipping/trunk/wooss.php) (2 diffs)
-
tags/5.5.2/uninstall.php (copied) (copied from sendbox-shipping/trunk/uninstall.php)
-
tags/5.5.2/wooss-reset.php (copied) (copied from sendbox-shipping/trunk/wooss-reset.php)
-
tags/5.5.2/wooss.php (copied) (copied from sendbox-shipping/trunk/wooss.php) (2 diffs)
-
trunk/README.txt (modified) (1 diff)
-
trunk/assets/js/admin-settings.js (modified) (1 diff)
-
trunk/src/Admin/Ajax.php (modified) (1 diff)
-
trunk/src/Admin/SettingsPage.php (modified) (1 diff)
-
trunk/src/Plugin.php (modified) (1 diff)
-
trunk/wooss.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sendbox-shipping/tags/5.5.2/README.txt
r3478390 r3478438 5 5 Requires at least: 6.0 6 6 Tested up to: 6.9 7 Stable tag: 5.5. 17 Stable tag: 5.5.2 8 8 Requires PHP: 7.4 9 9 License: GPLv2 or later -
sendbox-shipping/tags/5.5.2/assets/js/admin-settings.js
r3478358 r3478438 115 115 } 116 116 117 // Reset plugin button 118 var resetBtn = document.querySelector(".wooss-reset-plugin"); 119 if (resetBtn) { 120 resetBtn.addEventListener("click", function (e) { 121 e.preventDefault(); 122 123 if (!confirm("Are you sure? This will delete all Sendbox Shipping settings and disconnect your account.")) { 124 return; 125 } 126 127 resetBtn.disabled = true; 128 resetBtn.textContent = "Resetting..."; 129 130 var formData = new FormData(); 131 formData.append("action", "wooss_reset_plugin"); 132 formData.append("security", wooss_ajax.nonce); 133 134 fetch(wooss_ajax.ajax_url, { method: "POST", body: formData }) 135 .then(function (res) { return res.json(); }) 136 .then(function (response) { 137 if (response.success) { 138 showSuccess("Plugin reset. Reloading..."); 139 setTimeout(function () { window.location.reload(); }, 2000); 140 } else { 141 var msg = response.data && response.data.message ? response.data.message : "Reset failed."; 142 showError(msg); 143 resetBtn.disabled = false; 144 resetBtn.textContent = "Reset Plugin"; 145 } 146 }) 147 .catch(function () { 148 showError("Network error. Please try again."); 149 resetBtn.disabled = false; 150 resetBtn.textContent = "Reset Plugin"; 151 }); 152 }); 153 } 154 117 155 function showError(msg) { 118 156 var el = document.querySelector(".wooss-errors-message"); -
sendbox-shipping/tags/5.5.2/src/Admin/Ajax.php
r3478358 r3478438 212 212 } 213 213 214 public function reset_plugin() { 215 check_ajax_referer( 'wooss-ajax-nonce', 'security' ); 216 217 if ( ! current_user_can( 'manage_woocommerce' ) ) { 218 wp_send_json_error( array( 'message' => __( 'Permission denied.', 'wooss' ) ), 403 ); 219 } 220 221 delete_option( 'sendbox_data' ); 222 delete_option( 'wooss_connection_status' ); 223 delete_option( 'wooss_db_version' ); 224 Cache::flush_all(); 225 226 wp_send_json_success( array( 'message' => __( 'Plugin data has been reset. Reloading...', 'wooss' ) ) ); 227 } 228 214 229 public function request_states() { 215 230 check_ajax_referer( 'wooss-ajax-nonce', 'security' ); -
sendbox-shipping/tags/5.5.2/src/Admin/SettingsPage.php
r3478358 r3478438 153 153 <?php esc_html_e( 'Sync changes', 'wooss' ); ?> 154 154 </button> 155 <button type="button" class="button wooss-reset-plugin" style="margin-left:10px;color:#d63638;"> 156 <?php esc_html_e( 'Reset Plugin', 'wooss' ); ?> 157 </button> 155 158 </div> 156 159 <span class="wooss-errors-message"></span> -
sendbox-shipping/tags/5.5.2/src/Plugin.php
r3478358 r3478438 71 71 add_action( 'wp_ajax_request_shipments', array( $ajax, 'request_shipments' ) ); 72 72 add_action( 'wp_ajax_request_states', array( $ajax, 'request_states' ) ); 73 add_action( 'wp_ajax_wooss_reset_plugin', array( $ajax, 'reset_plugin' ) ); 73 74 } 74 75 -
sendbox-shipping/tags/5.5.2/trunk/README.txt
r3478390 r3478438 5 5 Requires at least: 6.0 6 6 Tested up to: 6.9 7 Stable tag: 5.5. 17 Stable tag: 5.5.2 8 8 Requires PHP: 7.4 9 9 License: GPLv2 or later -
sendbox-shipping/tags/5.5.2/trunk/assets/js/admin-settings.js
r3478358 r3478438 115 115 } 116 116 117 // Reset plugin button 118 var resetBtn = document.querySelector(".wooss-reset-plugin"); 119 if (resetBtn) { 120 resetBtn.addEventListener("click", function (e) { 121 e.preventDefault(); 122 123 if (!confirm("Are you sure? This will delete all Sendbox Shipping settings and disconnect your account.")) { 124 return; 125 } 126 127 resetBtn.disabled = true; 128 resetBtn.textContent = "Resetting..."; 129 130 var formData = new FormData(); 131 formData.append("action", "wooss_reset_plugin"); 132 formData.append("security", wooss_ajax.nonce); 133 134 fetch(wooss_ajax.ajax_url, { method: "POST", body: formData }) 135 .then(function (res) { return res.json(); }) 136 .then(function (response) { 137 if (response.success) { 138 showSuccess("Plugin reset. Reloading..."); 139 setTimeout(function () { window.location.reload(); }, 2000); 140 } else { 141 var msg = response.data && response.data.message ? response.data.message : "Reset failed."; 142 showError(msg); 143 resetBtn.disabled = false; 144 resetBtn.textContent = "Reset Plugin"; 145 } 146 }) 147 .catch(function () { 148 showError("Network error. Please try again."); 149 resetBtn.disabled = false; 150 resetBtn.textContent = "Reset Plugin"; 151 }); 152 }); 153 } 154 117 155 function showError(msg) { 118 156 var el = document.querySelector(".wooss-errors-message"); -
sendbox-shipping/tags/5.5.2/trunk/src/Admin/Ajax.php
r3478358 r3478438 212 212 } 213 213 214 public function reset_plugin() { 215 check_ajax_referer( 'wooss-ajax-nonce', 'security' ); 216 217 if ( ! current_user_can( 'manage_woocommerce' ) ) { 218 wp_send_json_error( array( 'message' => __( 'Permission denied.', 'wooss' ) ), 403 ); 219 } 220 221 delete_option( 'sendbox_data' ); 222 delete_option( 'wooss_connection_status' ); 223 delete_option( 'wooss_db_version' ); 224 Cache::flush_all(); 225 226 wp_send_json_success( array( 'message' => __( 'Plugin data has been reset. Reloading...', 'wooss' ) ) ); 227 } 228 214 229 public function request_states() { 215 230 check_ajax_referer( 'wooss-ajax-nonce', 'security' ); -
sendbox-shipping/tags/5.5.2/trunk/src/Admin/SettingsPage.php
r3478358 r3478438 153 153 <?php esc_html_e( 'Sync changes', 'wooss' ); ?> 154 154 </button> 155 <button type="button" class="button wooss-reset-plugin" style="margin-left:10px;color:#d63638;"> 156 <?php esc_html_e( 'Reset Plugin', 'wooss' ); ?> 157 </button> 155 158 </div> 156 159 <span class="wooss-errors-message"></span> -
sendbox-shipping/tags/5.5.2/trunk/src/Plugin.php
r3478358 r3478438 71 71 add_action( 'wp_ajax_request_shipments', array( $ajax, 'request_shipments' ) ); 72 72 add_action( 'wp_ajax_request_states', array( $ajax, 'request_states' ) ); 73 add_action( 'wp_ajax_wooss_reset_plugin', array( $ajax, 'reset_plugin' ) ); 73 74 } 74 75 -
sendbox-shipping/tags/5.5.2/trunk/wooss.php
r3478390 r3478438 4 4 * Plugin URI: https://sendbox.co/ 5 5 * Description: WooCommerce shipping integration with Sendbox — ship from your store to anywhere in the world. 6 * Version: 5.5. 16 * Version: 5.5.2 7 7 * Author: Sendbox 8 8 * Author URI: https://sendbox.co/ … … 23 23 } 24 24 25 define( 'WOOSS_VERSION', '5.5. 1' );25 define( 'WOOSS_VERSION', '5.5.2' ); 26 26 define( 'WOOSS_PLUGIN_FILE', __FILE__ ); 27 27 define( 'WOOSS_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); -
sendbox-shipping/tags/5.5.2/wooss.php
r3478390 r3478438 4 4 * Plugin URI: https://sendbox.co/ 5 5 * Description: WooCommerce shipping integration with Sendbox — ship from your store to anywhere in the world. 6 * Version: 5.5. 16 * Version: 5.5.2 7 7 * Author: Sendbox 8 8 * Author URI: https://sendbox.co/ … … 23 23 } 24 24 25 define( 'WOOSS_VERSION', '5.5. 1' );25 define( 'WOOSS_VERSION', '5.5.2' ); 26 26 define( 'WOOSS_PLUGIN_FILE', __FILE__ ); 27 27 define( 'WOOSS_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); -
sendbox-shipping/trunk/README.txt
r3478390 r3478438 5 5 Requires at least: 6.0 6 6 Tested up to: 6.9 7 Stable tag: 5.5. 17 Stable tag: 5.5.2 8 8 Requires PHP: 7.4 9 9 License: GPLv2 or later -
sendbox-shipping/trunk/assets/js/admin-settings.js
r3478358 r3478438 115 115 } 116 116 117 // Reset plugin button 118 var resetBtn = document.querySelector(".wooss-reset-plugin"); 119 if (resetBtn) { 120 resetBtn.addEventListener("click", function (e) { 121 e.preventDefault(); 122 123 if (!confirm("Are you sure? This will delete all Sendbox Shipping settings and disconnect your account.")) { 124 return; 125 } 126 127 resetBtn.disabled = true; 128 resetBtn.textContent = "Resetting..."; 129 130 var formData = new FormData(); 131 formData.append("action", "wooss_reset_plugin"); 132 formData.append("security", wooss_ajax.nonce); 133 134 fetch(wooss_ajax.ajax_url, { method: "POST", body: formData }) 135 .then(function (res) { return res.json(); }) 136 .then(function (response) { 137 if (response.success) { 138 showSuccess("Plugin reset. Reloading..."); 139 setTimeout(function () { window.location.reload(); }, 2000); 140 } else { 141 var msg = response.data && response.data.message ? response.data.message : "Reset failed."; 142 showError(msg); 143 resetBtn.disabled = false; 144 resetBtn.textContent = "Reset Plugin"; 145 } 146 }) 147 .catch(function () { 148 showError("Network error. Please try again."); 149 resetBtn.disabled = false; 150 resetBtn.textContent = "Reset Plugin"; 151 }); 152 }); 153 } 154 117 155 function showError(msg) { 118 156 var el = document.querySelector(".wooss-errors-message"); -
sendbox-shipping/trunk/src/Admin/Ajax.php
r3478358 r3478438 212 212 } 213 213 214 public function reset_plugin() { 215 check_ajax_referer( 'wooss-ajax-nonce', 'security' ); 216 217 if ( ! current_user_can( 'manage_woocommerce' ) ) { 218 wp_send_json_error( array( 'message' => __( 'Permission denied.', 'wooss' ) ), 403 ); 219 } 220 221 delete_option( 'sendbox_data' ); 222 delete_option( 'wooss_connection_status' ); 223 delete_option( 'wooss_db_version' ); 224 Cache::flush_all(); 225 226 wp_send_json_success( array( 'message' => __( 'Plugin data has been reset. Reloading...', 'wooss' ) ) ); 227 } 228 214 229 public function request_states() { 215 230 check_ajax_referer( 'wooss-ajax-nonce', 'security' ); -
sendbox-shipping/trunk/src/Admin/SettingsPage.php
r3478358 r3478438 153 153 <?php esc_html_e( 'Sync changes', 'wooss' ); ?> 154 154 </button> 155 <button type="button" class="button wooss-reset-plugin" style="margin-left:10px;color:#d63638;"> 156 <?php esc_html_e( 'Reset Plugin', 'wooss' ); ?> 157 </button> 155 158 </div> 156 159 <span class="wooss-errors-message"></span> -
sendbox-shipping/trunk/src/Plugin.php
r3478358 r3478438 71 71 add_action( 'wp_ajax_request_shipments', array( $ajax, 'request_shipments' ) ); 72 72 add_action( 'wp_ajax_request_states', array( $ajax, 'request_states' ) ); 73 add_action( 'wp_ajax_wooss_reset_plugin', array( $ajax, 'reset_plugin' ) ); 73 74 } 74 75 -
sendbox-shipping/trunk/wooss.php
r3478390 r3478438 4 4 * Plugin URI: https://sendbox.co/ 5 5 * Description: WooCommerce shipping integration with Sendbox — ship from your store to anywhere in the world. 6 * Version: 5.5. 16 * Version: 5.5.2 7 7 * Author: Sendbox 8 8 * Author URI: https://sendbox.co/ … … 23 23 } 24 24 25 define( 'WOOSS_VERSION', '5.5. 1' );25 define( 'WOOSS_VERSION', '5.5.2' ); 26 26 define( 'WOOSS_PLUGIN_FILE', __FILE__ ); 27 27 define( 'WOOSS_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
Note: See TracChangeset
for help on using the changeset viewer.