Skip to content

Commit

Permalink
Merge pull request #5198 from ampproject/add/paired-browsing-template…
Browse files Browse the repository at this point in the history
…-include-filter-priority

Ensure paired browsing template_include filter overrides other filters
  • Loading branch information
westonruter authored Aug 8, 2020
2 parents 177a673 + 2cf9081 commit ed3a1e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-amp-theme-support.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ public static function finish_init() {
if ( self::is_paired_available() ) {
self::setup_paired_browsing_client();
add_action( 'template_redirect', [ __CLASS__, 'sanitize_url_for_paired_browsing' ] );
add_filter( 'template_include', [ __CLASS__, 'serve_paired_browsing_experience' ] );
add_filter( 'template_include', [ __CLASS__, 'serve_paired_browsing_experience' ], PHP_INT_MAX );
}

$has_query_var = (
Expand Down

0 comments on commit ed3a1e3

Please sign in to comment.