Skip to content

Commit d56dcf1

Browse files
authored
Merge pull request Tmeister#20 from Lion/develop
Increase determine_current_user priority
2 parents d7bfd79 + 54fc0d9 commit d56dcf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/class-jwt-auth.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ private function define_public_hooks()
141141
$plugin_public = new Jwt_Auth_Public($this->get_plugin_name(), $this->get_version());
142142
$this->loader->add_action('rest_api_init', $plugin_public, 'add_api_routes');
143143
$this->loader->add_filter('rest_api_init', $plugin_public, 'add_cors_support');
144-
$this->loader->add_filter('determine_current_user', $plugin_public, 'determine_current_user', 99);
144+
$this->loader->add_filter('determine_current_user', $plugin_public, 'determine_current_user', 10);
145145
$this->loader->add_filter( 'rest_pre_dispatch', $plugin_public, 'rest_pre_dispatch', 10, 2 );
146146
}
147147

0 commit comments

Comments
 (0)