Skip to content

Commit 96fca9c

Browse files
RequestRouter: POST Requests - Switch to new request object inside the maybe_redirection
1 parent fd4ad69 commit 96fca9c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/DataView/RequestRouter.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,15 +146,15 @@ public function route(): void {
146146
public function maybe_redirect(): void {
147147
$this->check_capability();
148148

149-
if ( ! $this->is_post_request() ) return;
149+
if ( ! $this->request->is_post() ) return;
150150

151151
if ( $this->config->is_singular() ) {
152152
$this->handle_settings_submit();
153153
return;
154154
}
155155

156-
$action = $this->url_builder->get_current_action();
157-
$id = $this->url_builder->get_current_id();
156+
$action = $this->request->get_current_action();
157+
$id = $this->request->get_current_id();
158158

159159
switch ( $action ) {
160160
case 'create':

0 commit comments

Comments
 (0)