Skip to content

Commit

Permalink
Hook before the ?p=123 redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
dphiffer committed Aug 21, 2015
1 parent 1e81356 commit 04ccca9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion singletons/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function __construct() {
$this->query = new JSON_API_Query();
$this->introspector = new JSON_API_Introspector();
$this->response = new JSON_API_Response();
add_action('template_redirect', array(&$this, 'template_redirect'));
add_action('template_redirect', array(&$this, 'template_redirect'), 0);
add_action('admin_menu', array(&$this, 'admin_menu'));
add_action('update_option_json_api_base', array(&$this, 'flush_rewrite_rules'));
add_action('pre_update_option_json_api_controllers', array(&$this, 'update_controllers'));
Expand Down

0 comments on commit 04ccca9

Please sign in to comment.