Changeset 3438445
- Timestamp:
- 01/13/2026 09:36:25 AM (3 months ago)
- Location:
- plationline
- Files:
-
- 2 added
- 3 edited
- 23 copied
-
tags/7.0.1 (copied) (copied from plationline/trunk)
-
tags/7.0.1/assets/js (copied) (copied from plationline/trunk/assets/js)
-
tags/7.0.1/inc/admin/class-admin-recurrence.php (copied) (copied from plationline/trunk/inc/admin/class-admin-recurrence.php)
-
tags/7.0.1/inc/admin/class-admin.php (copied) (copied from plationline/trunk/inc/admin/class-admin.php) (12 diffs)
-
tags/7.0.1/inc/core/class-activator.php (copied) (copied from plationline/trunk/inc/core/class-activator.php)
-
tags/7.0.1/inc/core/class-init.php (copied) (copied from plationline/trunk/inc/core/class-init.php)
-
tags/7.0.1/inc/core/class-wc-plationline-additional.php (copied) (copied from plationline/trunk/inc/core/class-wc-plationline-additional.php)
-
tags/7.0.1/inc/core/class-wc-plationline-login.php (copied) (copied from plationline/trunk/inc/core/class-wc-plationline-login.php)
-
tags/7.0.1/inc/core/class-wc-plationline-pr.php (copied) (copied from plationline/trunk/inc/core/class-wc-plationline-pr.php)
-
tags/7.0.1/inc/core/class-wc-plationline-process.php (copied) (copied from plationline/trunk/inc/core/class-wc-plationline-process.php)
-
tags/7.0.1/inc/core/class-wc-plationline-recurrence.php (copied) (copied from plationline/trunk/inc/core/class-wc-plationline-recurrence.php)
-
tags/7.0.1/inc/core/class-wc-plationline-woocommerce-subscriptions.php (copied) (copied from plationline/trunk/inc/core/class-wc-plationline-woocommerce-subscriptions.php)
-
tags/7.0.1/inc/core/class-wc-plationline.php (copied) (copied from plationline/trunk/inc/core/class-wc-plationline.php)
-
tags/7.0.1/inc/front/blocks (copied) (copied from plationline/trunk/inc/front/blocks)
-
tags/7.0.1/languages/plationline-ro_RO-2217e191e20657191aab8d29ca69e424.json (added)
-
tags/7.0.1/languages/plationline-ro_RO-43d6286aff47733e013900c8acc99ffa.json (copied) (copied from plationline/trunk/languages/plationline-ro_RO-43d6286aff47733e013900c8acc99ffa.json)
-
tags/7.0.1/languages/plationline-ro_RO-51a89123b7c1baebf274d801e90a9ea4.json (copied) (copied from plationline/trunk/languages/plationline-ro_RO-51a89123b7c1baebf274d801e90a9ea4.json)
-
tags/7.0.1/languages/plationline-ro_RO-59c6cc70be8f0286d7cd4d7e5d0784da.json (copied) (copied from plationline/trunk/languages/plationline-ro_RO-59c6cc70be8f0286d7cd4d7e5d0784da.json)
-
tags/7.0.1/languages/plationline-ro_RO-9044edfbb6107b456c7a813846def95b.json (copied) (copied from plationline/trunk/languages/plationline-ro_RO-9044edfbb6107b456c7a813846def95b.json)
-
tags/7.0.1/languages/plationline-ro_RO.mo (copied) (copied from plationline/trunk/languages/plationline-ro_RO.mo)
-
tags/7.0.1/languages/plationline-ro_RO.po (copied) (copied from plationline/trunk/languages/plationline-ro_RO.po)
-
tags/7.0.1/languages/plationline.pot (copied) (copied from plationline/trunk/languages/plationline.pot)
-
tags/7.0.1/plationline.php (copied) (copied from plationline/trunk/plationline.php) (2 diffs)
-
tags/7.0.1/readme.txt (copied) (copied from plationline/trunk/readme.txt) (2 diffs)
-
trunk/inc/admin/class-admin.php (modified) (12 diffs)
-
trunk/languages/plationline-ro_RO-2217e191e20657191aab8d29ca69e424.json (added)
-
trunk/plationline.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
plationline/tags/7.0.1/inc/admin/class-admin.php
r3437666 r3438445 143 143 public function query() 144 144 { 145 if (!wp_verify_nonce($_GET['_po_wpnonce'], 'plationline-admin')) { 145 if (!current_user_can('edit_shop_orders')) { 146 $this->response('error', 'Unauthorized'); 147 wp_die(); 148 } 149 150 if (empty($_GET['_po_wpnonce']) || !wp_verify_nonce($_GET['_po_wpnonce'], 'plationline-admin')) { 146 151 $this->response('error', 'Invalid nonce'); 147 152 wp_die(); … … 155 160 $order_id = (int)$_POST['order']; 156 161 $order = wc_get_order($order_id); 162 163 if (!$order instanceof WC_Order) { 164 $this->response('error', 'Invalid order'); 165 wp_die(); 166 } 167 157 168 $transid = $order->get_transaction_id(); 158 169 … … 201 212 public function void() 202 213 { 203 if (!wp_verify_nonce($_GET['_po_wpnonce'], 'plationline-admin')) { 214 if (!current_user_can('edit_shop_orders')) { 215 $this->response('error', 'Unauthorized'); 216 wp_die(); 217 } 218 219 if (empty($_GET['_po_wpnonce']) || !wp_verify_nonce($_GET['_po_wpnonce'], 'plationline-admin')) { 204 220 $this->response('error', 'Invalid nonce'); 205 221 wp_die(); … … 208 224 if (empty($_POST['order'])) { 209 225 $this->response('No post sent'); 210 die();226 wp_die(); 211 227 } 212 228 $order_id = (int)$_POST['order']; 213 229 $order = wc_get_order($order_id); 230 231 if (!$order instanceof WC_Order) { 232 $this->response('error', 'Invalid order'); 233 wp_die(); 234 } 235 214 236 $transid = $order->get_transaction_id(); 215 237 … … 261 283 public function cancel_recurrence() 262 284 { 263 if (!wp_verify_nonce($_GET['_po_wpnonce'], 'plationline-admin')) { 285 if (!current_user_can('edit_shop_orders')) { 286 $this->response('error', 'Unauthorized'); 287 wp_die(); 288 } 289 290 if (empty($_GET['_po_wpnonce']) || !wp_verify_nonce($_GET['_po_wpnonce'], 'plationline-admin')) { 264 291 $this->response('error', 'Invalid nonce'); 265 292 wp_die(); … … 268 295 if (empty($_POST['order'])) { 269 296 $this->response('No post sent'); 270 die();297 wp_die(); 271 298 } 272 299 $order_id = (int)$_POST['order']; 273 300 $order = wc_get_order($order_id); 301 302 if (!$order instanceof WC_Order) { 303 $this->response('error', 'Invalid order'); 304 wp_die(); 305 } 306 274 307 $transid = $order->get_transaction_id(); 275 308 … … 317 350 public function settle() 318 351 { 319 if (!wp_verify_nonce($_GET['_po_wpnonce'], 'plationline-admin')) { 352 if (!current_user_can('edit_shop_orders')) { 353 $this->response('error', 'Unauthorized'); 354 wp_die(); 355 } 356 357 if (empty($_GET['_po_wpnonce']) || !wp_verify_nonce($_GET['_po_wpnonce'], 'plationline-admin')) { 320 358 $this->response('error', 'Invalid nonce'); 321 359 wp_die(); … … 328 366 $order_id = (int)$_POST['order']; 329 367 $order = wc_get_order($order_id); 368 369 if (!$order instanceof WC_Order) { 370 $this->response('error', 'Invalid order'); 371 wp_die(); 372 } 373 330 374 $transid = $order->get_transaction_id(); 331 375 … … 379 423 public function refund() 380 424 { 381 if (!wp_verify_nonce($_GET['_po_wpnonce'], 'plationline-admin')) { 425 if (!current_user_can('edit_shop_orders')) { 426 $this->response('error', 'Unauthorized'); 427 wp_die(); 428 } 429 430 if (empty($_GET['_po_wpnonce']) || !wp_verify_nonce($_GET['_po_wpnonce'], 'plationline-admin')) { 382 431 $this->response('error', 'Invalid nonce'); 383 432 wp_die(); … … 385 434 386 435 if (empty($_POST['order'])) { 387 $this->response(' No post sent');436 $this->response('error', 'No post sent'); 388 437 wp_die(); 389 438 } 390 439 $order_id = (int)$_POST['order']; 391 440 $order = wc_get_order($order_id); 441 442 if (!$order instanceof WC_Order) { 443 $this->response('error', 'Invalid order'); 444 wp_die(); 445 } 446 392 447 $transid = $order->get_transaction_id(); 393 448 … … 439 494 public function settle_amount() 440 495 { 441 if (!wp_verify_nonce($_GET['_po_wpnonce'], 'plationline-admin')) { 496 if (!current_user_can('edit_shop_orders')) { 497 $this->response('error', 'Unauthorized'); 498 wp_die(); 499 } 500 501 if (empty($_GET['_po_wpnonce']) || !wp_verify_nonce($_GET['_po_wpnonce'], 'plationline-admin')) { 442 502 $this->response('error', 'Invalid nonce'); 443 503 wp_die(); … … 445 505 446 506 if (empty($_POST['order'])) { 447 $this->response(' No post sent');507 $this->response('error', 'No post sent'); 448 508 wp_die(); 449 509 } 450 510 $order_id = (int)$_POST['order']; 451 511 $order = wc_get_order($order_id); 512 513 if (!$order instanceof WC_Order) { 514 $this->response('error', 'Invalid order'); 515 wp_die(); 516 } 517 452 518 $transid = $order->get_transaction_id(); 453 519 -
plationline/tags/7.0.1/plationline.php
r3437666 r3438445 16 16 * Plugin URI: https://plati.online 17 17 * Description: Online payment by card and Login with Plati.Online account 18 * Version: 7.0. 018 * Version: 7.0.1 19 19 * Author: PlatiOnline 20 20 * Author URI: https://plati.online … … 41 41 define(__NAMESPACE__ . '\NS', __NAMESPACE__ . '\\'); 42 42 define(NS . 'PLUGIN_NAME', 'plationline'); 43 define(NS . 'PLUGIN_VERSION', '7.0. 0');43 define(NS . 'PLUGIN_VERSION', '7.0.1'); 44 44 define(NS . 'PLUGIN_NAME_DIR', plugin_dir_path(__FILE__)); 45 45 define(NS . 'PLUGIN_NAME_URL', plugin_dir_url(__FILE__)); -
plationline/tags/7.0.1/readme.txt
r3437666 r3438445 4 4 Requires at least: 6.0 5 5 Tested up to: 6.9 6 Stable tag: 7.0. 06 Stable tag: 7.0.1 7 7 Requires PHP: 5.6 8 8 WC requires at least: 8.3.0 … … 106 106 == Changelog == 107 107 108 = 7.0.1 = 109 * added admin remote actions extra validation 110 108 111 = 7.0.0 = 109 112 * support Woocommerce blocks checkout -
plationline/trunk/inc/admin/class-admin.php
r3437666 r3438445 143 143 public function query() 144 144 { 145 if (!wp_verify_nonce($_GET['_po_wpnonce'], 'plationline-admin')) { 145 if (!current_user_can('edit_shop_orders')) { 146 $this->response('error', 'Unauthorized'); 147 wp_die(); 148 } 149 150 if (empty($_GET['_po_wpnonce']) || !wp_verify_nonce($_GET['_po_wpnonce'], 'plationline-admin')) { 146 151 $this->response('error', 'Invalid nonce'); 147 152 wp_die(); … … 155 160 $order_id = (int)$_POST['order']; 156 161 $order = wc_get_order($order_id); 162 163 if (!$order instanceof WC_Order) { 164 $this->response('error', 'Invalid order'); 165 wp_die(); 166 } 167 157 168 $transid = $order->get_transaction_id(); 158 169 … … 201 212 public function void() 202 213 { 203 if (!wp_verify_nonce($_GET['_po_wpnonce'], 'plationline-admin')) { 214 if (!current_user_can('edit_shop_orders')) { 215 $this->response('error', 'Unauthorized'); 216 wp_die(); 217 } 218 219 if (empty($_GET['_po_wpnonce']) || !wp_verify_nonce($_GET['_po_wpnonce'], 'plationline-admin')) { 204 220 $this->response('error', 'Invalid nonce'); 205 221 wp_die(); … … 208 224 if (empty($_POST['order'])) { 209 225 $this->response('No post sent'); 210 die();226 wp_die(); 211 227 } 212 228 $order_id = (int)$_POST['order']; 213 229 $order = wc_get_order($order_id); 230 231 if (!$order instanceof WC_Order) { 232 $this->response('error', 'Invalid order'); 233 wp_die(); 234 } 235 214 236 $transid = $order->get_transaction_id(); 215 237 … … 261 283 public function cancel_recurrence() 262 284 { 263 if (!wp_verify_nonce($_GET['_po_wpnonce'], 'plationline-admin')) { 285 if (!current_user_can('edit_shop_orders')) { 286 $this->response('error', 'Unauthorized'); 287 wp_die(); 288 } 289 290 if (empty($_GET['_po_wpnonce']) || !wp_verify_nonce($_GET['_po_wpnonce'], 'plationline-admin')) { 264 291 $this->response('error', 'Invalid nonce'); 265 292 wp_die(); … … 268 295 if (empty($_POST['order'])) { 269 296 $this->response('No post sent'); 270 die();297 wp_die(); 271 298 } 272 299 $order_id = (int)$_POST['order']; 273 300 $order = wc_get_order($order_id); 301 302 if (!$order instanceof WC_Order) { 303 $this->response('error', 'Invalid order'); 304 wp_die(); 305 } 306 274 307 $transid = $order->get_transaction_id(); 275 308 … … 317 350 public function settle() 318 351 { 319 if (!wp_verify_nonce($_GET['_po_wpnonce'], 'plationline-admin')) { 352 if (!current_user_can('edit_shop_orders')) { 353 $this->response('error', 'Unauthorized'); 354 wp_die(); 355 } 356 357 if (empty($_GET['_po_wpnonce']) || !wp_verify_nonce($_GET['_po_wpnonce'], 'plationline-admin')) { 320 358 $this->response('error', 'Invalid nonce'); 321 359 wp_die(); … … 328 366 $order_id = (int)$_POST['order']; 329 367 $order = wc_get_order($order_id); 368 369 if (!$order instanceof WC_Order) { 370 $this->response('error', 'Invalid order'); 371 wp_die(); 372 } 373 330 374 $transid = $order->get_transaction_id(); 331 375 … … 379 423 public function refund() 380 424 { 381 if (!wp_verify_nonce($_GET['_po_wpnonce'], 'plationline-admin')) { 425 if (!current_user_can('edit_shop_orders')) { 426 $this->response('error', 'Unauthorized'); 427 wp_die(); 428 } 429 430 if (empty($_GET['_po_wpnonce']) || !wp_verify_nonce($_GET['_po_wpnonce'], 'plationline-admin')) { 382 431 $this->response('error', 'Invalid nonce'); 383 432 wp_die(); … … 385 434 386 435 if (empty($_POST['order'])) { 387 $this->response(' No post sent');436 $this->response('error', 'No post sent'); 388 437 wp_die(); 389 438 } 390 439 $order_id = (int)$_POST['order']; 391 440 $order = wc_get_order($order_id); 441 442 if (!$order instanceof WC_Order) { 443 $this->response('error', 'Invalid order'); 444 wp_die(); 445 } 446 392 447 $transid = $order->get_transaction_id(); 393 448 … … 439 494 public function settle_amount() 440 495 { 441 if (!wp_verify_nonce($_GET['_po_wpnonce'], 'plationline-admin')) { 496 if (!current_user_can('edit_shop_orders')) { 497 $this->response('error', 'Unauthorized'); 498 wp_die(); 499 } 500 501 if (empty($_GET['_po_wpnonce']) || !wp_verify_nonce($_GET['_po_wpnonce'], 'plationline-admin')) { 442 502 $this->response('error', 'Invalid nonce'); 443 503 wp_die(); … … 445 505 446 506 if (empty($_POST['order'])) { 447 $this->response(' No post sent');507 $this->response('error', 'No post sent'); 448 508 wp_die(); 449 509 } 450 510 $order_id = (int)$_POST['order']; 451 511 $order = wc_get_order($order_id); 512 513 if (!$order instanceof WC_Order) { 514 $this->response('error', 'Invalid order'); 515 wp_die(); 516 } 517 452 518 $transid = $order->get_transaction_id(); 453 519 -
plationline/trunk/plationline.php
r3437666 r3438445 16 16 * Plugin URI: https://plati.online 17 17 * Description: Online payment by card and Login with Plati.Online account 18 * Version: 7.0. 018 * Version: 7.0.1 19 19 * Author: PlatiOnline 20 20 * Author URI: https://plati.online … … 41 41 define(__NAMESPACE__ . '\NS', __NAMESPACE__ . '\\'); 42 42 define(NS . 'PLUGIN_NAME', 'plationline'); 43 define(NS . 'PLUGIN_VERSION', '7.0. 0');43 define(NS . 'PLUGIN_VERSION', '7.0.1'); 44 44 define(NS . 'PLUGIN_NAME_DIR', plugin_dir_path(__FILE__)); 45 45 define(NS . 'PLUGIN_NAME_URL', plugin_dir_url(__FILE__)); -
plationline/trunk/readme.txt
r3437666 r3438445 4 4 Requires at least: 6.0 5 5 Tested up to: 6.9 6 Stable tag: 7.0. 06 Stable tag: 7.0.1 7 7 Requires PHP: 5.6 8 8 WC requires at least: 8.3.0 … … 106 106 == Changelog == 107 107 108 = 7.0.1 = 109 * added admin remote actions extra validation 110 108 111 = 7.0.0 = 109 112 * support Woocommerce blocks checkout
Note: See TracChangeset
for help on using the changeset viewer.