@@ -49,7 +49,6 @@ private function __construct() {
4949 self ::$ route = woographql_setting ( 'authorizing_url_endpoint ' , apply_filters ( 'woographql_authorizing_url_endpoint ' , self ::$ default_route ) );
5050
5151 $ this ->init ();
52-
5352 }
5453
5554 /**
@@ -61,17 +60,17 @@ private function init() {
6160 /**
6261 * Create the rewrite rule for the route
6362 */
64- add_action ( 'init ' , [ self :: $ instance , 'add_rewrite_rule ' ], 10 );
63+ add_action ( 'init ' , [ $ this , 'add_rewrite_rule ' ], 10 );
6564
6665 /**
6766 * Add the query var for the route
6867 */
69- add_filter ( 'query_vars ' , [ self :: $ instance , 'add_query_var ' ], 1 , 1 );
68+ add_filter ( 'query_vars ' , [ $ this , 'add_query_var ' ], 1 , 1 );
7069
7170 /**
7271 * Redirects the route to the graphql processor
7372 */
74- add_action ( 'pre_get_posts ' , [ self :: $ instance , 'resolve_request ' ], 1 );
73+ add_action ( 'pre_get_posts ' , [ $ this , 'resolve_request ' ], 1 );
7574 }
7675
7776 /**
@@ -196,7 +195,7 @@ public function resolve_request() {
196195 * Remove the resolve_request function from the pre_get_posts action
197196 * to prevent an infinite loop
198197 */
199- remove_action ( 'pre_get_posts ' , [ self :: $ instance , 'resolve_request ' ], 1 );
198+ remove_action ( 'pre_get_posts ' , [ $ this , 'resolve_request ' ], 1 );
200199
201200 /**
202201 * Access the $wp_query object
0 commit comments