File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -316,7 +316,7 @@ function woographql_create_nonce( $action = -1 ) {
316316 /**
317317 * Validate WPGraphQL for WooCommerce session transfer nonces.
318318 *
319- * @param string $nonce Nonce to validated.
319+ * @param string $nonce Nonce to validated.
320320 * @param string|-1 $action Nonce name.
321321 *
322322 * @return false|int
Original file line number Diff line number Diff line change @@ -329,7 +329,7 @@ protected function validate_cart_token( $cart_token ) {
329329 $ payload = (object ) [
330330 'iat ' => $ parts ->payload ->iat ,
331331 'exp ' => $ parts ->payload ->exp ,
332- 'data ' => (object ) [ 'customer_id ' => $ parts ->payload ->user_id ?? '' ]
332+ 'data ' => (object ) [ 'customer_id ' => $ parts ->payload ->user_id ?? '' ],
333333 ];
334334 } catch ( \Throwable $ error ) {
335335 return new \WP_Error ( 'invalid_cart_token ' , $ error ->getMessage () );
You can’t perform that action at this time.
0 commit comments