Skip to content

Commit 8bd0182

Browse files
authored
fix: order item connection cursor fixed. (#574)
1 parent 2a721a2 commit 8bd0182

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

includes/data/connection/class-order-item-connection-resolver.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ public function get_query() {
9191
$items = array();
9292
foreach ( $this->source->get_items( $type ) as $id => $item ) {
9393
$item->cached_order = $this->source;
94+
$item->cached_id = $id;
9495
$items[] = $item;
9596
}
9697

@@ -104,7 +105,7 @@ public function get_query() {
104105
}
105106
}
106107

107-
$cursor = $this->get_offset();
108+
$cursor = absint( $this->get_offset() );
108109
$first = ! empty( $this->args['first'] ) ? $this->args['first'] : null;
109110
$last = ! empty( $this->args['last'] ) ? $this->args['last'] : null;
110111

0 commit comments

Comments
 (0)