Changeset 3312744
- Timestamp:
- 06/16/2025 07:58:03 PM (10 months ago)
- Location:
- zafepay
- Files:
-
- 5 edited
- 5 copied
-
tags/1.0.6 (copied) (copied from zafepay/trunk)
-
tags/1.0.6/build/index.asset.php (modified) (1 diff)
-
tags/1.0.6/includes/class-wc-gateway-zafepay.php (copied) (copied from zafepay/trunk/includes/class-wc-gateway-zafepay.php)
-
tags/1.0.6/includes/class-wc-zafepay-blocks-support.php (modified) (1 diff)
-
tags/1.0.6/package.json (copied) (copied from zafepay/trunk/package.json)
-
tags/1.0.6/readme.txt (copied) (copied from zafepay/trunk/readme.txt)
-
tags/1.0.6/zafepay.php (copied) (copied from zafepay/trunk/zafepay.php) (2 diffs)
-
trunk/build/index.asset.php (modified) (1 diff)
-
trunk/includes/class-wc-zafepay-blocks-support.php (modified) (1 diff)
-
trunk/zafepay.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
zafepay/tags/1.0.6/build/index.asset.php
r3055589 r3312744 1 <?php return array('dependencies' => array('react' ), 'version' => 'ce7fb7b989dcb5b6692f');1 <?php return array('dependencies' => array('react', 'wc-blocks-registry'), 'version' => 'ce7fb7b989dcb5b6692f'); -
zafepay/tags/1.0.6/includes/class-wc-zafepay-blocks-support.php
r3046572 r3312744 24 24 { 25 25 $asset_path = WC_ZAFEPAY_PLUGIN_PATH . '/build/index.asset.php'; 26 $dependencies = []; 27 if (file_exists($asset_path)) { 26 $dependencies = [ 'wc-blocks-registry' ]; 27 $version = null; 28 29 if ( file_exists( $asset_path ) ) { 28 30 $asset = require $asset_path; 29 $dependencies = is_array($asset) && isset($asset['dependencies']) 30 ? $asset['dependencies'] 31 : $dependencies; 31 32 if ( is_array( $asset ) ) { 33 if ( isset( $asset['dependencies'] ) && is_array( $asset['dependencies'] ) ) { 34 35 $dependencies = array_unique( array_merge( $dependencies, $asset['dependencies'] ) ); 36 } 37 38 if ( isset( $asset['version'] ) ) { 39 $version = $asset['version']; 40 } 41 } 32 42 } 33 wp_register_script('wc-zafepay-blocks-integration', WC_ZAFEPAY_PLUGIN_URL . '/build/index.js', ['wc-blocks-registry']);34 43 35 return ['wc-zafepay-blocks-integration']; 44 wp_register_script( 'wc-zafepay-blocks-integration', WC_ZAFEPAY_PLUGIN_URL . '/build/index.js', $dependencies, $version, true ); 45 46 return [ 'wc-zafepay-blocks-integration' ]; 36 47 } 37 48 } -
zafepay/tags/1.0.6/zafepay.php
r3312737 r3312744 8 8 * Version: 1.0.6 9 9 * Requires at least: 5.7 10 * Tested up to: 6. 610 * Tested up to: 6.8 11 11 * Text Domain: zafepay 12 12 * Domain Path: /languages … … 21 21 22 22 define('WC_ZAFEPAY_PLUGIN_PATH', untrailingslashit(plugin_dir_path(__FILE__))); 23 define('WC_ZAFEPAY_PLUGIN_URL', untrailingslashit(plugins_url( basename(plugin_dir_path(__FILE__)), basename(__FILE__))));23 define('WC_ZAFEPAY_PLUGIN_URL', untrailingslashit(plugins_url('', __FILE__))); 24 24 25 25 function zafepay_add_zafepay_gateway_class($methods) -
zafepay/trunk/build/index.asset.php
r3055589 r3312744 1 <?php return array('dependencies' => array('react' ), 'version' => 'ce7fb7b989dcb5b6692f');1 <?php return array('dependencies' => array('react', 'wc-blocks-registry'), 'version' => 'ce7fb7b989dcb5b6692f'); -
zafepay/trunk/includes/class-wc-zafepay-blocks-support.php
r3046572 r3312744 24 24 { 25 25 $asset_path = WC_ZAFEPAY_PLUGIN_PATH . '/build/index.asset.php'; 26 $dependencies = []; 27 if (file_exists($asset_path)) { 26 $dependencies = [ 'wc-blocks-registry' ]; 27 $version = null; 28 29 if ( file_exists( $asset_path ) ) { 28 30 $asset = require $asset_path; 29 $dependencies = is_array($asset) && isset($asset['dependencies']) 30 ? $asset['dependencies'] 31 : $dependencies; 31 32 if ( is_array( $asset ) ) { 33 if ( isset( $asset['dependencies'] ) && is_array( $asset['dependencies'] ) ) { 34 35 $dependencies = array_unique( array_merge( $dependencies, $asset['dependencies'] ) ); 36 } 37 38 if ( isset( $asset['version'] ) ) { 39 $version = $asset['version']; 40 } 41 } 32 42 } 33 wp_register_script('wc-zafepay-blocks-integration', WC_ZAFEPAY_PLUGIN_URL . '/build/index.js', ['wc-blocks-registry']);34 43 35 return ['wc-zafepay-blocks-integration']; 44 wp_register_script( 'wc-zafepay-blocks-integration', WC_ZAFEPAY_PLUGIN_URL . '/build/index.js', $dependencies, $version, true ); 45 46 return [ 'wc-zafepay-blocks-integration' ]; 36 47 } 37 48 } -
zafepay/trunk/zafepay.php
r3312737 r3312744 8 8 * Version: 1.0.6 9 9 * Requires at least: 5.7 10 * Tested up to: 6. 610 * Tested up to: 6.8 11 11 * Text Domain: zafepay 12 12 * Domain Path: /languages … … 21 21 22 22 define('WC_ZAFEPAY_PLUGIN_PATH', untrailingslashit(plugin_dir_path(__FILE__))); 23 define('WC_ZAFEPAY_PLUGIN_URL', untrailingslashit(plugins_url( basename(plugin_dir_path(__FILE__)), basename(__FILE__))));23 define('WC_ZAFEPAY_PLUGIN_URL', untrailingslashit(plugins_url('', __FILE__))); 24 24 25 25 function zafepay_add_zafepay_gateway_class($methods)
Note: See TracChangeset
for help on using the changeset viewer.