Skip to content

Commit

Permalink
Move the function_exists a bit later as Jetpack team suggested
Browse files Browse the repository at this point in the history
  • Loading branch information
GeekPress committed Apr 4, 2017
1 parent b1a1176 commit ed38bcd
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' ) && function_exists( 'jetpack_sitemap_uri' ) ) :
if ( defined( 'JETPACK__VERSION' ) ) :
$jetpack_active_modules = get_option( 'jetpack_active_modules' );

/**
Expand All @@ -9,7 +9,7 @@
* @since 2.8
* @author Remy Perona
*/
if ( is_array( $jetpack_active_modules ) && in_array( 'sitemaps', $jetpack_active_modules ) ) {
if ( is_array( $jetpack_active_modules ) && in_array( 'sitemaps', $jetpack_active_modules ) && function_exists( 'jetpack_sitemap_uri' ) ) {
add_filter( 'rocket_first_install_options', '__rocket_add_jetpack_sitemap_option' );
function __rocket_add_jetpack_sitemap_option( $options ) {
$options['jetpack_xml_sitemap'] = 0;
Expand Down

0 comments on commit ed38bcd

Please sign in to comment.