Changeset 3488343
- Timestamp:
- 03/22/2026 05:52:17 PM (9 days ago)
- Location:
- dl-gift-wallet
- Files:
-
- 5 edited
- 12 copied
-
tags/1.1.0 (copied) (copied from dl-gift-wallet/trunk)
-
tags/1.1.0/changelog.txt (copied) (copied from dl-gift-wallet/trunk/changelog.txt)
-
tags/1.1.0/dl-gift-wallet.php (copied) (copied from dl-gift-wallet/trunk/dl-gift-wallet.php)
-
tags/1.1.0/includes (copied) (copied from dl-gift-wallet/trunk/includes)
-
tags/1.1.0/readme.txt (copied) (copied from dl-gift-wallet/trunk/readme.txt)
-
tags/1.1.0/templates (copied) (copied from dl-gift-wallet/trunk/templates)
-
tags/1.1.1 (copied) (copied from dl-gift-wallet/trunk)
-
tags/1.1.1/changelog.txt (copied) (copied from dl-gift-wallet/trunk/changelog.txt) (1 diff)
-
tags/1.1.1/dl-gift-wallet.php (copied) (copied from dl-gift-wallet/trunk/dl-gift-wallet.php) (5 diffs)
-
tags/1.1.1/includes (copied) (copied from dl-gift-wallet/trunk/includes)
-
tags/1.1.1/includes/emails/class-dl-gift-wallet-email-gift-received.php (modified) (2 diffs)
-
tags/1.1.1/readme.txt (copied) (copied from dl-gift-wallet/trunk/readme.txt) (3 diffs)
-
tags/1.1.1/templates (copied) (copied from dl-gift-wallet/trunk/templates)
-
trunk/changelog.txt (modified) (1 diff)
-
trunk/dl-gift-wallet.php (modified) (5 diffs)
-
trunk/includes/emails/class-dl-gift-wallet-email-gift-received.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dl-gift-wallet/tags/1.1.1/changelog.txt
r3474779 r3488343 1 1 *** DL Gift Wallet *** 2 3 2026-03-22 - version 1.1.1 4 * Fix: Corrected email trigger argument mismatch to prevent potential PHP errors. 5 * Fix: Resolved email class lookup issue in test email handler. 2 6 3 7 2026-03-03 - version 1.1.0 -
dl-gift-wallet/tags/1.1.1/dl-gift-wallet.php
r3474779 r3488343 3 3 * Plugin Name: DL Gift Wallet 4 4 * Description: Allow customers to purchase gift credit that is automatically added to a recipient’s store account as balance. 5 * Version: 1.1. 05 * Version: 1.1.1 6 6 * Requires at least: 6.0 7 7 * Requires PHP: 8.3 8 8 * WC requires at least: 8.0 9 * WC tested up to: 10. 5.39 * WC tested up to: 10.6.1 10 10 * Author: Digital Lychee Creative Limited 11 11 * Author URI: https://digitallychee.com … … 517 517 $emails = WC()->mailer()->get_emails(); 518 518 519 if ( empty( $emails['DL_Gift_Wallet_Email_Gift_Received'] ) ) { 519 $email_id = 'dl_gift_wallet_gift_received'; 520 521 if ( empty( $emails[ $email_id ] ) ) { 520 522 add_action('admin_notices', function () { 521 523 echo '<div class="notice notice-error"><p>' . … … 527 529 528 530 /** @var DL_Gift_Wallet_Email_Gift_Received $email */ 529 $email = $emails[ 'DL_Gift_Wallet_Email_Gift_Received'];531 $email = $emails[ $email_id ]; 530 532 531 533 ob_start(); … … 534 536 __('Test Sender', 'dl-gift-wallet'), 535 537 __('This is a test gift email from Gift Wallet.', 'dl-gift-wallet'), 536 25 538 25, 539 $this->get_default_gift_image_url() 537 540 ); 538 541 $buffer = ob_get_clean(); … … 548 551 }); 549 552 } 553 554 public function set_preview_data($data) 555 { 556 $this->object = (object) array( 557 'from_name' => isset($data['from_name']) ? sanitize_text_field($data['from_name']) : __('A friend', 'dl-gift-wallet'), 558 'message' => isset($data['message']) ? wp_kses_post($data['message']) : '', 559 'amount' => isset($data['amount']) ? (float) $data['amount'] : 25, 560 'artwork_url' => isset($data['artwork_url']) ? esc_url_raw($data['artwork_url']) : '', 561 ); 562 } 550 563 551 564 /* ------------------------------------------------------------------------- -
dl-gift-wallet/tags/1.1.1/includes/emails/class-dl-gift-wallet-email-gift-received.php
r3474779 r3488343 98 98 * @param float $gift_total_base Amount in store base currency. 99 99 */ 100 public function trigger($recipient_email, $from_name, $message, $gift_total_base )100 public function trigger($recipient_email, $from_name, $message, $gift_total_base, $artwork_url = '') 101 101 { 102 102 $this->setup_locale(); … … 107 107 'message' => $message, 108 108 'amount' => (float) $gift_total_base, 109 'artwork_url' => esc_url_raw($artwork_url), 109 110 ); 110 111 -
dl-gift-wallet/tags/1.1.1/readme.txt
r3474779 r3488343 5 5 Tested up to: 6.9 6 6 Requires PHP: 8.3 7 Stable tag: 1.1. 07 Stable tag: 1.1.1 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 247 247 248 248 == Changelog == 249 250 = 1.1.1 = 251 * Fix: Corrected email trigger argument mismatch to prevent potential PHP errors. 252 * Fix: Resolved email class lookup issue in test email handler. 249 253 250 254 = 1.1.0 = … … 295 299 = Upgrade Notice = 296 300 297 = 1.1. 0=298 Gift emails are now managed via WooCommerce → Settings → Emails. Existing email settings are migrated automatically.301 = 1.1.1 = 302 Fixes a minor email handling issue. No action required. -
dl-gift-wallet/trunk/changelog.txt
r3474779 r3488343 1 1 *** DL Gift Wallet *** 2 3 2026-03-22 - version 1.1.1 4 * Fix: Corrected email trigger argument mismatch to prevent potential PHP errors. 5 * Fix: Resolved email class lookup issue in test email handler. 2 6 3 7 2026-03-03 - version 1.1.0 -
dl-gift-wallet/trunk/dl-gift-wallet.php
r3474779 r3488343 3 3 * Plugin Name: DL Gift Wallet 4 4 * Description: Allow customers to purchase gift credit that is automatically added to a recipient’s store account as balance. 5 * Version: 1.1. 05 * Version: 1.1.1 6 6 * Requires at least: 6.0 7 7 * Requires PHP: 8.3 8 8 * WC requires at least: 8.0 9 * WC tested up to: 10. 5.39 * WC tested up to: 10.6.1 10 10 * Author: Digital Lychee Creative Limited 11 11 * Author URI: https://digitallychee.com … … 517 517 $emails = WC()->mailer()->get_emails(); 518 518 519 if ( empty( $emails['DL_Gift_Wallet_Email_Gift_Received'] ) ) { 519 $email_id = 'dl_gift_wallet_gift_received'; 520 521 if ( empty( $emails[ $email_id ] ) ) { 520 522 add_action('admin_notices', function () { 521 523 echo '<div class="notice notice-error"><p>' . … … 527 529 528 530 /** @var DL_Gift_Wallet_Email_Gift_Received $email */ 529 $email = $emails[ 'DL_Gift_Wallet_Email_Gift_Received'];531 $email = $emails[ $email_id ]; 530 532 531 533 ob_start(); … … 534 536 __('Test Sender', 'dl-gift-wallet'), 535 537 __('This is a test gift email from Gift Wallet.', 'dl-gift-wallet'), 536 25 538 25, 539 $this->get_default_gift_image_url() 537 540 ); 538 541 $buffer = ob_get_clean(); … … 548 551 }); 549 552 } 553 554 public function set_preview_data($data) 555 { 556 $this->object = (object) array( 557 'from_name' => isset($data['from_name']) ? sanitize_text_field($data['from_name']) : __('A friend', 'dl-gift-wallet'), 558 'message' => isset($data['message']) ? wp_kses_post($data['message']) : '', 559 'amount' => isset($data['amount']) ? (float) $data['amount'] : 25, 560 'artwork_url' => isset($data['artwork_url']) ? esc_url_raw($data['artwork_url']) : '', 561 ); 562 } 550 563 551 564 /* ------------------------------------------------------------------------- -
dl-gift-wallet/trunk/includes/emails/class-dl-gift-wallet-email-gift-received.php
r3474779 r3488343 98 98 * @param float $gift_total_base Amount in store base currency. 99 99 */ 100 public function trigger($recipient_email, $from_name, $message, $gift_total_base )100 public function trigger($recipient_email, $from_name, $message, $gift_total_base, $artwork_url = '') 101 101 { 102 102 $this->setup_locale(); … … 107 107 'message' => $message, 108 108 'amount' => (float) $gift_total_base, 109 'artwork_url' => esc_url_raw($artwork_url), 109 110 ); 110 111 -
dl-gift-wallet/trunk/readme.txt
r3474779 r3488343 5 5 Tested up to: 6.9 6 6 Requires PHP: 8.3 7 Stable tag: 1.1. 07 Stable tag: 1.1.1 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 247 247 248 248 == Changelog == 249 250 = 1.1.1 = 251 * Fix: Corrected email trigger argument mismatch to prevent potential PHP errors. 252 * Fix: Resolved email class lookup issue in test email handler. 249 253 250 254 = 1.1.0 = … … 295 299 = Upgrade Notice = 296 300 297 = 1.1. 0=298 Gift emails are now managed via WooCommerce → Settings → Emails. Existing email settings are migrated automatically.301 = 1.1.1 = 302 Fixes a minor email handling issue. No action required.
Note: See TracChangeset
for help on using the changeset viewer.