diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2019-01-01 22:18:11 -0500 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2019-01-01 22:18:11 -0500 |
commit | 018bd442ec1e04ba78a6628763414eb60b359398 (patch) | |
tree | 448cde462397af33e5a964ba5d0803b73c65040e /plugins/jetpack/modules/sitemaps/sitemap-finder.php | |
parent | Update easy-table 1.8 (diff) | |
download | blogs-gentoo-018bd442ec1e04ba78a6628763414eb60b359398.tar.gz blogs-gentoo-018bd442ec1e04ba78a6628763414eb60b359398.tar.bz2 blogs-gentoo-018bd442ec1e04ba78a6628763414eb60b359398.zip |
Update jetpack 6.8.1
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'plugins/jetpack/modules/sitemaps/sitemap-finder.php')
-rw-r--r-- | plugins/jetpack/modules/sitemaps/sitemap-finder.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/plugins/jetpack/modules/sitemaps/sitemap-finder.php b/plugins/jetpack/modules/sitemaps/sitemap-finder.php index b83644b1..ae6335ce 100644 --- a/plugins/jetpack/modules/sitemaps/sitemap-finder.php +++ b/plugins/jetpack/modules/sitemaps/sitemap-finder.php @@ -29,7 +29,14 @@ class Jetpack_Sitemap_Finder { * @return string Complete URI of the given sitemap file. */ public function construct_sitemap_url( $filename ) { - return jetpack_sitemap_uri( $filename ); + $url = jetpack_sitemap_uri( $filename ); + + if ( pathinfo( $filename, PATHINFO_EXTENSION ) === 'xsl' ) { + // strip scheme for sites where sitemap could be access via http or https + $url = preg_replace( '/^https?:/', '', $url ); + } + + return $url; } /** |