Skip to content

Commit bc07902

Browse files
committed
"Product_Connection_Resolver::set_query_arg()" removed.
1 parent c6d2cbc commit bc07902

File tree

6 files changed

+7127
-23
lines changed

6 files changed

+7127
-23
lines changed

includes/data/connection/class-product-connection-resolver.php

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -569,27 +569,4 @@ public function sanitize_input_fields( array $where_args ) {
569569
public function is_valid_offset( $offset ) {
570570
return $this->is_valid_post_offset( $offset );
571571
}
572-
573-
/**
574-
* Works like "AbstractConnectionResolver::set_query_arg()" with exception to
575-
* array values. If the query argument already existed and both values are arrays
576-
* the array with "array_intersect()". This behavior can be bypassed using
577-
* the "overwrite" parameter.
578-
*
579-
* @param string $key The key of the query arg to set
580-
* @param mixed $value The value of the query arg to set
581-
* @param boolean $overwrite If true, array values are overwritten.
582-
*
583-
* @return Product_Connection_Resolver
584-
*/
585-
public function set_query_arg( $key, $value, $overwrite = false ) {
586-
if ( ! empty( $this->query_args[ $key ] )
587-
&& is_array( $this->query_args[ $key ] ) && $overwrite
588-
) {
589-
$this->query_args[ $key ] = array_intersect( $value, $this->query_args[ $key ] );
590-
} else {
591-
$this->query_args[ $key ] = $value;
592-
}
593-
return $this;
594-
}
595572
}

0 commit comments

Comments
 (0)