Plugin Directory

Changeset 3111126


Ignore:
Timestamp:
07/02/2024 11:59:31 AM (21 months ago)
Author:
totalprocessing
Message:

Bug Fix - excludeFramePostId() function has been tweaked, to avoid order IDs being erroneously included in query results

Location:
totalprocessing-card-payments
Files:
123 added
3 edited

Legend:

Unmodified
Added
Removed
  • totalprocessing-card-payments/trunk/includes/class-tp-payment-gateway.php

    r3105176 r3111126  
    450450        if(!is_admin()){
    451451            if( $query->is_home() || $query->is_feed() ||  $query->is_search() || $query->is_archive() ) {
    452                 $query->set('post__not_in', array($iFramePostId));
    453             }
    454         }
     452                $existing_post_not_in = $query->get('post__not_in');
     453                if (empty($existing_post_not_in)) {
     454                    $existing_post_not_in = array();
     455                }
     456                $existing_post_not_in[] = $iFramePostId;
     457                $query->set('post__not_in', $existing_post_not_in);
     458            }
     459        }
     460
    455461        return $query;
    456462    }
  • totalprocessing-card-payments/trunk/readme.txt

    r3105180 r3111126  
    44Requires at least: 5.2.0
    55Tested up to: 6.5.4
    6 Stable tag: 7.0.0
     6Stable tag: 7.0.1
    77Requires PHP: 7.4
    88License: GPLv3
     
    4747
    4848== Changelog ==
     49
     50= 7.0.1 - 01-07-2024 15:45 =
     51
     52* Bug Fix - excludeFramePostId() function has been tweaked, to avoid order IDs being erroneously included in query results
    4953
    5054= 7.0.0 - 20-06-2024 19:48 =
  • totalprocessing-card-payments/trunk/totalprocessing-card-payments-and-gateway-woocommerce.php

    r3105176 r3111126  
    1010 * Plugin URI:           https://www.totalprocessing.com/woocommerce/cards
    1111 * Description:          Accept all major credit and debit cards. Fast, seamless, and flexible.
    12  * Version:              7.0.0
     12 * Version:              7.0.1
    1313 * Author:               Total Processing Limited
    1414 * Copyright:            2022 Total Processing Limited.
Note: See TracChangeset for help on using the changeset viewer.