Skip to content

Commit 9d214a2

Browse files
committed
fix: request all() not includes all payload attributes
1 parent f222cf1 commit 9d214a2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Http/Request/Request.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,10 @@ public function setApiRequest(WP_REST_Request $request)
116116
$this->setBody((array) $request->get_body_params() + (array) $request->get_json_params());
117117
$this->setQueryParams((array) $request->get_query_params());
118118
$this->setRouteParams((array) $request->get_url_params());
119-
$this->attributes = (array) $request->get_params();
120-
$this->rest = $request;
119+
120+
$this->attributes = (array) $this->queryParams + (array) $this->body + (array) $this->routeParams;
121+
122+
$this->rest = $request;
121123
}
122124

123125
/**

0 commit comments

Comments
 (0)