Skip to content

Commit

Permalink
Merge pull request #314 from mirkolofio/master
Browse files Browse the repository at this point in the history
Fix the issue on missing/exceeding 'www.'
  • Loading branch information
Joost de Valk committed Nov 20, 2013
2 parents 4393b76 + 269bc10 commit 4c0dfa3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inc/class-sitemaps.php
Expand Up @@ -47,7 +47,8 @@ function __construct() {
add_action( 'wpseo_hit_sitemap_index', array( $this, 'hit_sitemap_index' ) );

// default stylesheet
$this->stylesheet = '<?xml-stylesheet type="text/xsl" href="' . home_url( 'main-sitemap.xsl' ) . '"?>';
$abs_main_sitemap_url = str_replace( get_option( 'home' ), $_SERVER['SERVER_NAME'], home_url( 'main-sitemap.xsl' ) );
$this->stylesheet = '<?xml-stylesheet type="text/xsl" href="' . $abs_main_sitemap_url . '"?>';

$this->options = get_wpseo_options();
}
Expand Down

0 comments on commit 4c0dfa3

Please sign in to comment.