@@ 393-396 (lines=4) @@ | ||
390 | */ |
|
391 | $discover_sitemap = apply_filters( 'jetpack_sitemap_generate', true ); |
|
392 | ||
393 | if ( true === $discover_sitemap ) { |
|
394 | $sitemap_url = $this->finder->construct_sitemap_url( 'sitemap.xml' ); |
|
395 | echo 'Sitemap: ' . esc_url( $sitemap_url ) . "\n"; |
|
396 | } |
|
397 | ||
398 | /** |
|
399 | * Filter whether to make the news sitemap discoverable to robots or not. Default true. |
|
@@ 408-411 (lines=4) @@ | ||
405 | */ |
|
406 | $discover_news_sitemap = apply_filters( 'jetpack_news_sitemap_generate', true ); |
|
407 | ||
408 | if ( true === $discover_news_sitemap ) { |
|
409 | $news_sitemap_url = $this->finder->construct_sitemap_url( 'news-sitemap.xml' ); |
|
410 | echo 'Sitemap: ' . esc_url( $news_sitemap_url ) . "\n"; |
|
411 | } |
|
412 | ||
413 | return; |
|
414 | } |