Skip to content

Commit

Permalink
Check if jetpack_sitemap_uri exists to avoid a fatal error with Jetpa…
Browse files Browse the repository at this point in the history
…ck 4.8
  • Loading branch information
GeekPress committed Apr 4, 2017
1 parent c3f00e0 commit b1a1176
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/3rd-party/jetpack.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

if ( defined( 'JETPACK__VERSION' ) ) :
if ( defined( 'JETPACK__VERSION' ) && function_exists( 'jetpack_sitemap_uri' ) ) :
$jetpack_active_modules = get_option( 'jetpack_active_modules' );

/**
Expand Down Expand Up @@ -53,4 +53,4 @@ function __rocket_sitemap_preload_jetpack_option( $options ) {
return $options;
}
}
endif;
endif;

0 comments on commit b1a1176

Please sign in to comment.