updated plugin Easy Digital Downloads
version 3.1.1.4.2
This commit is contained in:
@ -162,15 +162,6 @@ function edd_update_payment_details( $data = array() ) {
|
||||
$previous_customer->remove_payment( $order_id, false );
|
||||
$customer->attach_payment( $order_id, false );
|
||||
|
||||
// If purchase was completed and not ever refunded, adjust stats of customers
|
||||
if ( 'revoked' === $new_status || 'complete' === $new_status ) {
|
||||
$previous_customer->recalculate_stats();
|
||||
|
||||
if ( ! empty( $customer ) ) {
|
||||
$customer->recalculate_stats();
|
||||
}
|
||||
}
|
||||
|
||||
$order_update_args['customer_id'] = $customer->id;
|
||||
}
|
||||
|
||||
|
@ -978,6 +978,14 @@ class EDD_Payment_History_Table extends List_Table {
|
||||
*/
|
||||
private function parse_search( $search, $args ) {
|
||||
|
||||
// Order ID/number.
|
||||
if ( is_numeric( $search ) ) {
|
||||
$args['id'] = $search;
|
||||
$args['order_number'] = $search;
|
||||
|
||||
return $args;
|
||||
}
|
||||
|
||||
// Transaction ID
|
||||
if ( is_string( $search ) && ( false !== strpos( $search, 'txn:' ) ) ) {
|
||||
$args['txn'] = trim( str_replace( 'txn:', '', $search ) );
|
||||
@ -999,13 +1007,6 @@ class EDD_Payment_History_Table extends List_Table {
|
||||
return $args;
|
||||
}
|
||||
|
||||
// Order ID
|
||||
if ( is_numeric( $search ) ) {
|
||||
$args['id'] = $search;
|
||||
|
||||
return $args;
|
||||
}
|
||||
|
||||
// The customer’s name or ID prefixed by customer:
|
||||
if ( ! is_array( $search ) && ( false !== strpos( $search, 'customer:' ) ) ) {
|
||||
$search = trim( str_replace( 'customer:', '', $search ) );
|
||||
|
@ -92,13 +92,13 @@ function edd_payments_contextual_help() {
|
||||
) );
|
||||
|
||||
$screen->add_help_tab( array(
|
||||
'id' => 'edd-payments-search',
|
||||
'title' => __( 'Search', 'easy-digital-downloads' ),
|
||||
'content' =>
|
||||
'id' => 'edd-payments-search',
|
||||
'title' => __( 'Search', 'easy-digital-downloads' ),
|
||||
'content' =>
|
||||
'<p>' . __( 'The order history can be searched in several different ways.', 'easy-digital-downloads' ) . '</p>' .
|
||||
'<p>' . __( 'You can enter:', 'easy-digital-downloads' ) . '</p>' .
|
||||
'<ul>
|
||||
<li>' . __( 'The order ID', 'easy-digital-downloads' ) . '</li>
|
||||
<li>' . __( 'The specific order ID', 'easy-digital-downloads' ) . '</li>
|
||||
<li>' . __( 'The 32-character order key', 'easy-digital-downloads' ) . '</li>
|
||||
<li>' . __( 'The customer\'s email address', 'easy-digital-downloads' ) . '</li>
|
||||
<li>' . sprintf(
|
||||
|
Reference in New Issue
Block a user