Update _transaction_id

Closes #9970
This commit is contained in:
Mike Jolley 2016-01-05 15:59:54 +00:00
parent 01908dca5d
commit 7ece70a6ae
1 changed files with 1 additions and 1 deletions

View File

@ -2375,7 +2375,7 @@ abstract class WC_Abstract_Order {
add_post_meta( $this->id, '_paid_date', current_time( 'mysql' ), true );
if ( ! empty( $transaction_id ) ) {
add_post_meta( $this->id, '_transaction_id', $transaction_id, true );
update_post_meta( $this->id, '_transaction_id', $transaction_id );
}
wp_update_post( array(