Changeset 3003030
- Timestamp:
- 11/29/2023 03:03:01 AM (2 years ago)
- Location:
- afterpay-gateway-for-woocommerce
- Files:
-
- 46 added
- 1 deleted
- 6 edited
- 1 copied
-
tags/3.7.1 (deleted)
-
tags/3.7.2 (copied) (copied from afterpay-gateway-for-woocommerce/trunk)
-
tags/3.7.2/afterpay-gateway-for-woocommerce.php (modified) (9 diffs)
-
tags/3.7.2/build (added)
-
tags/3.7.2/build/afterpay-admin (added)
-
tags/3.7.2/build/afterpay-admin/index.asset.php (added)
-
tags/3.7.2/build/afterpay-admin/index.js (added)
-
tags/3.7.2/build/afterpay-blocks (added)
-
tags/3.7.2/build/afterpay-blocks/index.asset.php (added)
-
tags/3.7.2/build/afterpay-blocks/index.js (added)
-
tags/3.7.2/build/afterpay-express (added)
-
tags/3.7.2/build/afterpay-express/index.asset.php (added)
-
tags/3.7.2/build/afterpay-express/index.js (added)
-
tags/3.7.2/build/afterpay-page-checkout (added)
-
tags/3.7.2/build/afterpay-page-checkout/index.asset.php (added)
-
tags/3.7.2/build/afterpay-page-checkout/index.js (added)
-
tags/3.7.2/build/cart-messaging-block (added)
-
tags/3.7.2/build/cart-messaging-block/block.json (added)
-
tags/3.7.2/build/cart-messaging-block/editor.asset.php (added)
-
tags/3.7.2/build/cart-messaging-block/editor.js (added)
-
tags/3.7.2/build/cart-messaging-block/frontend.asset.php (added)
-
tags/3.7.2/build/cart-messaging-block/frontend.js (added)
-
tags/3.7.2/build/product-messaging-block (added)
-
tags/3.7.2/build/product-messaging-block/block.json (added)
-
tags/3.7.2/build/product-messaging-block/index.asset.php (added)
-
tags/3.7.2/build/product-messaging-block/index.js (added)
-
tags/3.7.2/readme.txt (modified) (2 diffs)
-
tags/3.7.2/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/afterpay-gateway-for-woocommerce.php (modified) (9 diffs)
-
trunk/build (added)
-
trunk/build/afterpay-admin (added)
-
trunk/build/afterpay-admin/index.asset.php (added)
-
trunk/build/afterpay-admin/index.js (added)
-
trunk/build/afterpay-blocks (added)
-
trunk/build/afterpay-blocks/index.asset.php (added)
-
trunk/build/afterpay-blocks/index.js (added)
-
trunk/build/afterpay-express (added)
-
trunk/build/afterpay-express/index.asset.php (added)
-
trunk/build/afterpay-express/index.js (added)
-
trunk/build/afterpay-page-checkout (added)
-
trunk/build/afterpay-page-checkout/index.asset.php (added)
-
trunk/build/afterpay-page-checkout/index.js (added)
-
trunk/build/cart-messaging-block (added)
-
trunk/build/cart-messaging-block/block.json (added)
-
trunk/build/cart-messaging-block/editor.asset.php (added)
-
trunk/build/cart-messaging-block/editor.js (added)
-
trunk/build/cart-messaging-block/frontend.asset.php (added)
-
trunk/build/cart-messaging-block/frontend.js (added)
-
trunk/build/product-messaging-block (added)
-
trunk/build/product-messaging-block/block.json (added)
-
trunk/build/product-messaging-block/index.asset.php (added)
-
trunk/build/product-messaging-block/index.js (added)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
afterpay-gateway-for-woocommerce/tags/3.7.2/afterpay-gateway-for-woocommerce.php
r2993698 r3003030 5 5 * Author: Afterpay 6 6 * Author URI: https://www.afterpay.com/ 7 * Version: 3.7. 17 * Version: 3.7.2 8 8 * Text Domain: afterpay-gateway-for-woocommerce 9 9 * WC requires at least: 3.2.6 10 * WC tested up to: 8. 2.110 * WC tested up to: 8.3.1 11 11 * 12 12 * Copyright: (c) 2020 Afterpay … … 46 46 * the value in the comments above. 47 47 */ 48 public static $version = '3.7. 1';48 public static $version = '3.7.2'; 49 49 50 50 /** … … 254 254 255 255 public static function register_js_lib() { 256 if ( ! self::init() ) { return; } 257 256 258 $instance = WC_Gateway_Afterpay::getInstance(); 257 259 $subdomain = $instance->get_api_env() == 'production' ? 'js' : 'js-sandbox'; … … 260 262 261 263 public static function register_common_assets() { 264 if ( ! self::init() ) { return; } 265 262 266 self::register_js_lib(); 263 267 … … 451 455 } 452 456 457 if ( ! self::init() ) { 458 // WooCommerce is not active. 459 return; 460 } 461 453 462 self::register_js_lib(); 454 463 … … 459 468 __DIR__ . '/build/product-messaging-block/block.json', 460 469 array( 461 'editor_script_handles' => [ 'square_marketplace_js' ],462 'view_script_handles' => [ 'square_marketplace_js' ],463 470 'render_callback' => array($instance, 'render_product_messaging_block') 464 471 ) … … 471 478 * to check restricted categories, or fetch the skus and categories for analytics. 472 479 */ 473 $cart_messaging_asset = include( plugin_dir_path( __FILE__ ) . 'build/cart-messaging-block/index.asset.php'); 474 wp_register_script( 'afterpay_cart_messaging', 475 plugins_url('build/cart-messaging-block/index.js', __FILE__), 480 $cart_messaging_asset = include( plugin_dir_path( __FILE__ ) . 'build/cart-messaging-block/frontend.asset.php'); 481 wp_register_script( 482 'afterpay_cart_messaging', 483 plugins_url('build/cart-messaging-block/frontend.js', __FILE__), 476 484 $cart_messaging_asset['dependencies'], 477 $cart_messaging_asset['version'],485 $cart_messaging_asset['version'], 478 486 true 479 487 ); … … 485 493 __DIR__ . '/build/cart-messaging-block/block.json', 486 494 array( 487 'editor_script_handles' => [ 'square_marketplace_js' ],488 'view_script_handles' => [ 'square_marketplace_js' ],489 495 'render_callback' => array($instance, 'render_cart_messaging_block') 490 496 ) 491 497 ); 492 498 } 499 500 public static function plugin_dependencies() { 501 if ( ! function_exists('WC') ) { 502 // show notice if WooCommerce plugin is not active 503 add_action('admin_notices', array(get_called_class(), 'admin_notice_dependency_error')); 504 } 505 } 506 507 public static function admin_notice_dependency_error() { 508 ?> 509 <div class="notice notice-error is-dismissible"> 510 <p><?php _e( 'Afterpay Gateway for WooCommerce requires WooCommerce to be installed and active!', 'woo_afterpay' ); ?></p> 511 </div> 512 <?php 513 } 493 514 } 494 515 … … 498 519 499 520 add_action( 'init', array('Afterpay_Plugin', 'register_blocks') ); 521 add_action( 'plugins_loaded', array('Afterpay_Plugin', 'plugin_dependencies') ); 500 522 add_action( 'plugins_loaded', array('Afterpay_Plugin', 'init'), 10, 0 ); 501 523 add_action( 'upgrader_process_complete', array('Afterpay_Plugin', 'upgrade_complete'), 10, 2 ); -
afterpay-gateway-for-woocommerce/tags/3.7.2/readme.txt
r2993698 r3003030 3 3 Tags: woocommerce, afterpay 4 4 Requires at least: 4.8.3 5 Tested up to: 6. 3.26 Stable tag: 3.7. 15 Tested up to: 6.4.1 6 Stable tag: 3.7.2 7 7 License: GNU Public License 8 8 License URI: https://www.gnu.org/licenses/ … … 39 39 40 40 == Changelog == 41 42 = 3.7.2 = 43 *Release Date: Wednesday, 29 Nov 2023* 44 45 * Minor bug fixes and performance improvements. 46 * Tested and verified support for WordPress 6.4.1 and WooCommerce 8.3.1. 41 47 42 48 = 3.7.1 = -
afterpay-gateway-for-woocommerce/tags/3.7.2/vendor/composer/installed.php
r2993698 r3003030 4 4 'pretty_version' => 'dev-master', 5 5 'version' => 'dev-master', 6 'reference' => ' b38a630c101a0b9eb5fa46ec7bb443f6c73972cd',6 'reference' => 'd2e0bbe033fb5ad201a731e6032da7e4ac9c3456', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 14 14 'pretty_version' => 'dev-master', 15 15 'version' => 'dev-master', 16 'reference' => ' b38a630c101a0b9eb5fa46ec7bb443f6c73972cd',16 'reference' => 'd2e0bbe033fb5ad201a731e6032da7e4ac9c3456', 17 17 'type' => 'library', 18 18 'install_path' => __DIR__ . '/../../', -
afterpay-gateway-for-woocommerce/trunk/afterpay-gateway-for-woocommerce.php
r2993698 r3003030 5 5 * Author: Afterpay 6 6 * Author URI: https://www.afterpay.com/ 7 * Version: 3.7. 17 * Version: 3.7.2 8 8 * Text Domain: afterpay-gateway-for-woocommerce 9 9 * WC requires at least: 3.2.6 10 * WC tested up to: 8. 2.110 * WC tested up to: 8.3.1 11 11 * 12 12 * Copyright: (c) 2020 Afterpay … … 46 46 * the value in the comments above. 47 47 */ 48 public static $version = '3.7. 1';48 public static $version = '3.7.2'; 49 49 50 50 /** … … 254 254 255 255 public static function register_js_lib() { 256 if ( ! self::init() ) { return; } 257 256 258 $instance = WC_Gateway_Afterpay::getInstance(); 257 259 $subdomain = $instance->get_api_env() == 'production' ? 'js' : 'js-sandbox'; … … 260 262 261 263 public static function register_common_assets() { 264 if ( ! self::init() ) { return; } 265 262 266 self::register_js_lib(); 263 267 … … 451 455 } 452 456 457 if ( ! self::init() ) { 458 // WooCommerce is not active. 459 return; 460 } 461 453 462 self::register_js_lib(); 454 463 … … 459 468 __DIR__ . '/build/product-messaging-block/block.json', 460 469 array( 461 'editor_script_handles' => [ 'square_marketplace_js' ],462 'view_script_handles' => [ 'square_marketplace_js' ],463 470 'render_callback' => array($instance, 'render_product_messaging_block') 464 471 ) … … 471 478 * to check restricted categories, or fetch the skus and categories for analytics. 472 479 */ 473 $cart_messaging_asset = include( plugin_dir_path( __FILE__ ) . 'build/cart-messaging-block/index.asset.php'); 474 wp_register_script( 'afterpay_cart_messaging', 475 plugins_url('build/cart-messaging-block/index.js', __FILE__), 480 $cart_messaging_asset = include( plugin_dir_path( __FILE__ ) . 'build/cart-messaging-block/frontend.asset.php'); 481 wp_register_script( 482 'afterpay_cart_messaging', 483 plugins_url('build/cart-messaging-block/frontend.js', __FILE__), 476 484 $cart_messaging_asset['dependencies'], 477 $cart_messaging_asset['version'],485 $cart_messaging_asset['version'], 478 486 true 479 487 ); … … 485 493 __DIR__ . '/build/cart-messaging-block/block.json', 486 494 array( 487 'editor_script_handles' => [ 'square_marketplace_js' ],488 'view_script_handles' => [ 'square_marketplace_js' ],489 495 'render_callback' => array($instance, 'render_cart_messaging_block') 490 496 ) 491 497 ); 492 498 } 499 500 public static function plugin_dependencies() { 501 if ( ! function_exists('WC') ) { 502 // show notice if WooCommerce plugin is not active 503 add_action('admin_notices', array(get_called_class(), 'admin_notice_dependency_error')); 504 } 505 } 506 507 public static function admin_notice_dependency_error() { 508 ?> 509 <div class="notice notice-error is-dismissible"> 510 <p><?php _e( 'Afterpay Gateway for WooCommerce requires WooCommerce to be installed and active!', 'woo_afterpay' ); ?></p> 511 </div> 512 <?php 513 } 493 514 } 494 515 … … 498 519 499 520 add_action( 'init', array('Afterpay_Plugin', 'register_blocks') ); 521 add_action( 'plugins_loaded', array('Afterpay_Plugin', 'plugin_dependencies') ); 500 522 add_action( 'plugins_loaded', array('Afterpay_Plugin', 'init'), 10, 0 ); 501 523 add_action( 'upgrader_process_complete', array('Afterpay_Plugin', 'upgrade_complete'), 10, 2 ); -
afterpay-gateway-for-woocommerce/trunk/readme.txt
r2993698 r3003030 3 3 Tags: woocommerce, afterpay 4 4 Requires at least: 4.8.3 5 Tested up to: 6. 3.26 Stable tag: 3.7. 15 Tested up to: 6.4.1 6 Stable tag: 3.7.2 7 7 License: GNU Public License 8 8 License URI: https://www.gnu.org/licenses/ … … 39 39 40 40 == Changelog == 41 42 = 3.7.2 = 43 *Release Date: Wednesday, 29 Nov 2023* 44 45 * Minor bug fixes and performance improvements. 46 * Tested and verified support for WordPress 6.4.1 and WooCommerce 8.3.1. 41 47 42 48 = 3.7.1 = -
afterpay-gateway-for-woocommerce/trunk/vendor/composer/installed.php
r2993698 r3003030 4 4 'pretty_version' => 'dev-master', 5 5 'version' => 'dev-master', 6 'reference' => ' b38a630c101a0b9eb5fa46ec7bb443f6c73972cd',6 'reference' => 'd2e0bbe033fb5ad201a731e6032da7e4ac9c3456', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 14 14 'pretty_version' => 'dev-master', 15 15 'version' => 'dev-master', 16 'reference' => ' b38a630c101a0b9eb5fa46ec7bb443f6c73972cd',16 'reference' => 'd2e0bbe033fb5ad201a731e6032da7e4ac9c3456', 17 17 'type' => 'library', 18 18 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset
for help on using the changeset viewer.