PluginProbe
WCPOS – Point of Sale (POS) plugin for WooCommerce / 1.10.18
WCPOS – Point of Sale (POS) plugin for WooCommerce v1.10.18
1.10.19 1.10.18 1.10.17 1.10.16 1.10.15 1.10.13 1.10.14 1.10.12 1.10.11 1.10.10 1.10.9 1.10.8 untagged-3d9b7ccddc54df87c672 1.10.7 1.10.6 1.10.5 1.10.3 1.10.4 1.10.2 1.10.1 1.10.0 1.9.17 1.9.15 1.9.16 1.9.14 All 163 releases
← All changes | includes/API/V2/Proxy/Orders_Proxy_Behavior.php +4 -1 1.10.41.10.18 View file →
@@ -20,8 +20,9 @@
20 20 */
21 21 private const PARAM_MAP = array(
22 22 'orderby' => 'orderby',
23 23 'order' => 'order',
24 + 'search' => 'search',
24 25 'pos_cashier' => 'pos_cashier',
25 26 'pos_store' => 'pos_store',
26 27 'created_via' => 'created_via',
27 28 'include' => array(
@@ -51,9 +52,11 @@
51 52 *
52 53 * @return array
53 54 */
54 55 public function forwarded_params( array $params, WP_REST_Request $request ): array {
55 - $this->plan = Collection_Rules::for_request( 'orders', $request, self::PARAM_MAP );
56 + $plan_request = clone $request;
57 + $plan_request->set_param( 'search', $params['search'] ?? null );
58 + $this->plan = Collection_Rules::for_request( 'orders', $plan_request, self::PARAM_MAP );
56 59 $params = $this->plan->forwarded_params( $params );
57 60 $params['dp'] = '6';
58 61
59 62 return $params;