Skip to content

Commit 3bdcb09

Browse files
jacobarriolakidunot89
authored andcommitted
Transaction object is missing session_data
The session data (snapshot) is a property of the session_handler, not of the existing instance. As a result, the snapshot was always returning null.
1 parent e168950 commit 3bdcb09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/utils/class-session-transaction-manager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ public function get_transaction_queue() {
177177
// If transaction ID not in queue, add it, and start transaction.
178178
if ( false === array_search( $this->transaction_id, array_column( $transaction_queue, 'transaction_id' ), true ) ) {
179179
$transaction_id = $this->transaction_id;
180-
$snapshot = $this->_data;
180+
$snapshot = $this->session_handler->get_session_data();
181181
$transaction_queue[] = compact( 'transaction_id', 'snapshot' );
182182

183183
// Update queue.

0 commit comments

Comments
 (0)