Skip to content

Commit

Permalink
Execute handle_returns and maybe_redirect at the end. Fixing Notifica…
Browse files Browse the repository at this point in the history
…tion issue.
  • Loading branch information
knit-pay committed Jun 4, 2024
1 parent 72aa7f6 commit 95a7664
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' ], PHP_INT_MAX );
add_action( 'wp_loaded', [ $this, 'maybe_redirect' ], PHP_INT_MAX );

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

0 comments on commit 95a7664

Please sign in to comment.