We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f222cf1 commit 9d214a2Copy full SHA for 9d214a2
src/Http/Request/Request.php
@@ -116,8 +116,10 @@ public function setApiRequest(WP_REST_Request $request)
116
$this->setBody((array) $request->get_body_params() + (array) $request->get_json_params());
117
$this->setQueryParams((array) $request->get_query_params());
118
$this->setRouteParams((array) $request->get_url_params());
119
- $this->attributes = (array) $request->get_params();
120
- $this->rest = $request;
+
+ $this->attributes = (array) $this->queryParams + (array) $this->body + (array) $this->routeParams;
121
122
+ $this->rest = $request;
123
}
124
125
/**
0 commit comments