Skip to content

Commit

Permalink
Merge pull request #1 from mecachisenros/php7.0
Browse files Browse the repository at this point in the history
wp-rest php7.0 compatible
  • Loading branch information
christianwach authored Jun 26, 2019
2 parents a1a2407 + 119a737 commit 4bb4b0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wp-rest/Controller/Rest.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ public function get_formatted_api_params( $request ) {

$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'] );
Expand Down

0 comments on commit 4bb4b0f

Please sign in to comment.