|
@@ 416-419 (lines=4) @@
|
| 413 |
|
*/ |
| 414 |
|
$discover_sitemap = apply_filters( 'jetpack_sitemap_generate', true ); |
| 415 |
|
|
| 416 |
|
if ( true === $discover_sitemap ) { |
| 417 |
|
$sitemap_url = $this->finder->construct_sitemap_url( 'sitemap.xml' ); |
| 418 |
|
echo 'Sitemap: ' . esc_url( $sitemap_url ) . "\n"; |
| 419 |
|
} |
| 420 |
|
|
| 421 |
|
/** |
| 422 |
|
* Filter whether to make the news sitemap discoverable to robots or not. Default true. |
|
@@ 431-434 (lines=4) @@
|
| 428 |
|
*/ |
| 429 |
|
$discover_news_sitemap = apply_filters( 'jetpack_news_sitemap_generate', true ); |
| 430 |
|
|
| 431 |
|
if ( true === $discover_news_sitemap ) { |
| 432 |
|
$news_sitemap_url = $this->finder->construct_sitemap_url( 'news-sitemap.xml' ); |
| 433 |
|
echo 'Sitemap: ' . esc_url( $news_sitemap_url ) . "\n"; |
| 434 |
|
} |
| 435 |
|
|
| 436 |
|
return; |
| 437 |
|
} |