Skip to content

Commit 665eaec

Browse files
authored
Merge pull request Tmeister#43 from DemonVex/develop
* Fix syntax error for shorthand array on PHP versions lower than 5.4
2 parents c592f82 + 4766e4e commit 665eaec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

public/class-jwt-auth-public.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ public function __construct($plugin_name, $version)
7272
*/
7373
public function add_api_routes()
7474
{
75-
register_rest_route($this->namespace, 'token', [
75+
register_rest_route($this->namespace, 'token', array(
7676
'methods' => 'POST',
7777
'callback' => array($this, 'generate_token'),
78-
]);
78+
));
7979

8080
register_rest_route($this->namespace, 'token/validate', array(
8181
'methods' => 'POST',

0 commit comments

Comments
 (0)