Skip to content

Commit

Permalink
Merge pull request #181 from knit-pay/redirection-priority-fix
Browse files Browse the repository at this point in the history
Changed priority of handle_returns and maybe_redirect to fix notification issue.
  • Loading branch information
remcotolsma authored Jun 4, 2024
2 parents 72aa7f6 + 4819307 commit b0a6a19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,8 @@ public function __construct( $args = [] ) {
add_action( 'init', [ $this, 'register_styles' ], 9 );

// If WordPress is loaded check on returns and maybe redirect requests.
add_action( 'wp_loaded', [ $this, 'handle_returns' ], 10 );
add_action( 'wp_loaded', [ $this, 'maybe_redirect' ], 10 );
add_action( 'wp_loaded', [ $this, 'handle_returns' ], 100 );
add_action( 'wp_loaded', [ $this, 'maybe_redirect' ], 100 );

// Default date time format.
add_filter( 'pronamic_datetime_default_format', [ $this, 'datetime_format' ], 10, 1 );
Expand Down

0 comments on commit b0a6a19

Please sign in to comment.