Changeset 3438433
- Timestamp:
- 01/13/2026 09:23:26 AM (5 days ago)
- Location:
- wc-affiliate/trunk
- Files:
-
- 5 edited
-
readme.txt (modified) (2 diffs)
-
src/AJAX.php (modified) (4 diffs)
-
vendor/composer/installed.php (modified) (2 diffs)
-
views/admin/menus/affiliates.php (modified) (2 diffs)
-
wc-affiliate.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wc-affiliate/trunk/readme.txt
r3425964 r3438433 5 5 Requires at least: 6.0 6 6 Tested up to: 6.9 7 Stable tag: 2.1 67 Stable tag: 2.17 8 8 Requires PHP: 7.4 9 9 License: GPLv2 or later … … 192 192 == Changelog == 193 193 194 = v2.17 - 2026-01-13 = 195 196 - [remove] Removed the notice for the Year End sale campaign. 197 194 198 = v2.16 - 2025-12-23 = 195 199 -
wc-affiliate/trunk/src/AJAX.php
r3381067 r3438433 437 437 public function export_csv_report() { 438 438 439 $headings = sanitize_text_field( $_POST['headings'] ); 440 $headings = stripslashes( $headings ); 441 $headings = maybe_unserialize( $headings ); 442 $wf_data = sanitize_text_field( $_POST['data'] ); 443 $wf_data = stripslashes( $wf_data ); 444 $wf_data = maybe_unserialize( $wf_data ); 439 $headings = isset( $_POST['headings'] ) ? map_deep( wp_unslash( $_POST['headings'] ), 'sanitize_text_field' ) : []; 440 $wf_data = isset( $_POST['data'] ) ? map_deep( wp_unslash( $_POST['data'] ), 'sanitize_text_field' ) : []; 445 441 $format = get_option( 'date_format' ) . ' ' . get_option( 'time_format' ); 446 442 $data = array(); 447 448 443 $_wpnonce = isset( $wf_data['_wpnonce'] ) ? sanitize_text_field( $wf_data['_wpnonce'] ) : false; 449 444 $page = isset( $wf_data['page'] ) ? sanitize_text_field( $wf_data['page'] ) : false; … … 544 539 } 545 540 } elseif ( $page == 'referrals' ) { 541 unset( $headings['actions'] ); // remove actions column 546 542 foreach ( $results as $result ) { 547 543 $products = ''; 548 $_products = unserialize( $result->products );544 $_products = maybe_unserialize( $result->products ); 549 545 550 546 foreach ( $_products as $key => $product ) { … … 555 551 $data[] = array( 556 552 'affiliate' => get_userdata( $result->affiliate )->display_name, 553 'commission' => $result->commission, 554 'type' => $result->type, 557 555 'visit' => $result->visit, 558 556 'order_id' => $result->order_id, 559 557 'products' => $products, 560 558 'order_total' => $result->order_total, 561 'commission' => $result->commission,562 559 'payment_status' => $result->payment_status, 563 560 'time' => date( $format, $result->time ), … … 570 567 $registered = date( $format, strtotime( $user->user_registered ) ); 571 568 $applied_time = date( $format, $result->meta_value ); 569 $applied_time = apply_filters( 'wc_affiliate_applied_time_display', $applied_time, $result->meta_value, $format, $result->user_id ); 570 $registered = apply_filters( 'wc_affiliate_registered_display', $registered, $user->user_registered, $format, $result->user_id ); 572 571 573 572 $data[] = array( -
wc-affiliate/trunk/vendor/composer/installed.php
r3425964 r3438433 2 2 'root' => array( 3 3 'name' => '__root__', 4 'pretty_version' => 'v2.1 6',5 'version' => '2.1 6.0.0',6 'reference' => ' 678bfe4d73a09a8bec39d3c38f2b29ff3e061643',4 'pretty_version' => 'v2.17', 5 'version' => '2.17.0.0', 6 'reference' => '7cd90c5f6dc31a482d467bdb5c49bfd3d341e5c7', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 '__root__' => array( 14 'pretty_version' => 'v2.1 6',15 'version' => '2.1 6.0.0',16 'reference' => ' 678bfe4d73a09a8bec39d3c38f2b29ff3e061643',14 'pretty_version' => 'v2.17', 15 'version' => '2.17.0.0', 16 'reference' => '7cd90c5f6dc31a482d467bdb5c49bfd3d341e5c7', 17 17 'type' => 'library', 18 18 'install_path' => __DIR__ . '/../../', -
wc-affiliate/trunk/views/admin/menus/affiliates.php
r3224700 r3438433 49 49 $status = get_user_meta( $affiliate->user_id, '_wc_affiliate_status', true ); 50 50 $applied_time = date( $format, $affiliate->meta_value ); 51 $registered = date( $format, strtotime( $user->user_registered ) ); 52 $applied_time = apply_filters( 'wc_affiliate_applied_time_display', $applied_time, $affiliate->meta_value, $format, $affiliate->user_id ); 53 $registered = apply_filters( 'wc_affiliate_registered_display', $registered, $user->user_registered, $format, $affiliate->user_id ); 51 54 52 55 $data[] = [ … … 54 57 'affiliate_id' => "#{$affiliate->user_id}", 55 58 'name' => esc_html( $user->display_name ), 56 'registered' => esc_html( $ user->user_registered ),59 'registered' => esc_html( $registered ), 57 60 'applied_time' => esc_html( $applied_time ), 58 61 'status' => esc_html( $status ), -
wc-affiliate/trunk/wc-affiliate.php
r3425964 r3438433 6 6 * Author: Codexpert 7 7 * Author URI: https://codexpert.io/?utm_campaign=author-uri 8 * Version: 2.1 68 * Version: 2.17 9 9 * Text Domain: wc-affiliate 10 10 * Domain Path: /languages … … 76 76 $this->plugin['TextDomain'] = 'wc-affiliate'; 77 77 $this->plugin['Name'] = 'WC Affiliate'; 78 $this->plugin['Version'] = '2.1 2';78 $this->plugin['Version'] = '2.17'; 79 79 $this->plugin['server'] = apply_filters( 'wc-affiliate_server', 'https://my.pluggable.io' ); 80 80 $this->plugin['min_php'] = '7.4'; … … 144 144 $admin->action( 'woocommerce_subscription_renewal_payment_complete', 'reorder_subscription', 10, 2 ); 145 145 $admin->filter( 'wp_kses_allowed_html', 'allow_extra_html_tags' ); 146 $admin->action( 'init', 'wc_affiliate_sale_notice', 9 );146 // $admin->action( 'init', 'wc_affiliate_sale_notice', 9 ); 147 147 $admin->action( 'admin_init', 'restrict_admin_access_by_affiliates' ); 148 148
Note: See TracChangeset
for help on using the changeset viewer.