Skip to content

Commit 025d45e

Browse files
committed
fix: ensure $this->query_args is primed before overloading
1 parent eeaed24 commit 025d45e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Data/Connection/AbstractConnectionResolver.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,10 @@ public function get_page_info(): array {
787787
* @return static
788788
*/
789789
public function set_query_arg( $key, $value ) {
790-
$this->query_args[ $key ] = $value;
790+
$query_args = $this->get_query_args();
791+
$query_args[ $key ] = $value;
792+
793+
$this->query_args = $query_args;
791794

792795
return $this;
793796
}

0 commit comments

Comments
 (0)