Skip to content

Commit

Permalink
#2812 Added in master
Browse files Browse the repository at this point in the history
  • Loading branch information
MARQAS committed Jan 29, 2019
1 parent 44a3dc3 commit d9669f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion accelerated-moblie-pages.php
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ function ampforwp_init() {
// Redirect the old url of amp page to the updated url. #1033 (Vendor Update)
add_filter( 'old_slug_redirect_url', 'ampforwp_redirect_old_slug_to_new_url' );

if ( class_exists( 'Jetpack' ) && ! (defined( 'IS_WPCOM' ) && IS_WPCOM) ) {
if ( class_exists( 'Jetpack' ) && ! (defined( 'IS_WPCOM' ) && IS_WPCOM) && ( defined('JETPACK__VERSION') && JETPACK__VERSION < 6.9 ) ) {
require_once( AMP__DIR__ . '/jetpack-helper.php' );
}
}
Expand Down

0 comments on commit d9669f5

Please sign in to comment.