Changeset 3381500
- Timestamp:
- 10/20/2025 06:54:39 PM (5 months ago)
- Location:
- xml-sitemap-generator-for-google/trunk/includes
- Files:
-
- 3 edited
-
Sitemap.php (modified) (1 diff)
-
helpers.php (modified) (1 diff)
-
vendor/SitemapGenerator.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
xml-sitemap-generator-for-google/trunk/includes/Sitemap.php
r3381488 r3381500 228 228 229 229 $this->add_url( 230 trailingslashit( untrailingslashit( sgg_get_home_url() )),230 sgg_get_home_url_with_trailing_slash(), 231 231 $home->priority, 232 232 $home->frequency, -
xml-sitemap-generator-for-google/trunk/includes/helpers.php
r3375258 r3381500 89 89 } 90 90 91 function sgg_get_home_url_with_trailing_slash() { 92 return trailingslashit( untrailingslashit( sgg_get_home_url() ) ); 93 } 94 91 95 function sgg_is_nginx() { 92 96 return isset( $_SERVER['SERVER_SOFTWARE'] ) && stristr( sanitize_text_field( wp_unslash( $_SERVER['SERVER_SOFTWARE'] ) ), 'nginx' ) !== false; -
xml-sitemap-generator-for-google/trunk/includes/vendor/SitemapGenerator.php
r3298498 r3381500 352 352 foreach ( $this->sitemaps as $sitemap_key => $sitemap ) { 353 353 if ( ! empty( $sitemap ) && is_array( $sitemap ) ) { 354 if ( 'page' === $sitemap_key && sgg_get_home_url () === ( $sitemap[0]['loc'] ?? '' ) && 1 < count( $sitemap ) ) {354 if ( 'page' === $sitemap_key && sgg_get_home_url_with_trailing_slash() === ( $sitemap[0]['loc'] ?? '' ) && 1 < count( $sitemap ) ) { 355 355 $sitemap[0] = array( 356 356 'loc' => $sitemap[0]['loc'],
Note: See TracChangeset
for help on using the changeset viewer.