Skip to content

Commit 54dbc6f

Browse files
committed
Ensure query var gets re-added on wp_redirect instead of removed
1 parent 107b426 commit 54dbc6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/class-amp-app-shell.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public static function init() {
4040
add_action( 'parse_query', [ __CLASS__, 'init_app_shell' ], 9 );
4141

4242
// Remove app shell query var.
43-
add_filter( 'wp_redirect', [ __CLASS__, 'purge_app_shell_query_var' ], 10, 1 );
43+
add_filter( 'wp_redirect', [ __CLASS__, 'add_purged_query_var' ], 10, 1 );
4444
self::purge_app_shell_query_var();
4545

4646
if ( ! is_admin() ) {

0 commit comments

Comments
 (0)