diff --git a/wp-rest/Controller/Rest.php b/wp-rest/Controller/Rest.php
index 7f275d0e480c614286ea6349987893e5dccafa61..0aeb3dff57288ec459badd314d79862a0c70ba99 100644
--- a/wp-rest/Controller/Rest.php
+++ b/wp-rest/Controller/Rest.php
@@ -152,8 +152,8 @@ class Rest extends Base {
 
 		$args = $request->get_params();
 
-		// destructure entity and action
-		[ 'entity' => $entity, 'action' => $action ] = $args;
+		$entity = $args['entity'];
+		$action = $args['action'];
 
 		// unset unnecessary args
 		unset( $args['entity'], $args['action'], $args['key'], $args['api_key'] );