Skip to content

Commit

Permalink
Replace init with parse_query for catching the login request (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
irshadahmad21 authored Feb 1, 2024
1 parent 7efc1a1 commit bacb50a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/witty-donuts-speak.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"wptelegram-login": patch
---

Fixed the fatal error caused by other plugins on `init`
2 changes: 1 addition & 1 deletion plugins/wptelegram-login/src/includes/Main.php
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ private function define_shared_hooks() {

$login_handler = LoginHandler::instance();

add_action( 'init', [ $login_handler, 'telegram_login' ], 1 );
add_action( 'parse_query', [ $login_handler, 'telegram_login' ] );

$asset_manager = $this->asset_manager();

Expand Down

0 comments on commit bacb50a

Please sign in to comment.