|
@@ 409-412 (lines=4) @@
|
| 406 |
|
*/ |
| 407 |
|
$discover_sitemap = apply_filters( 'jetpack_sitemap_generate', true ); |
| 408 |
|
|
| 409 |
|
if ( true === $discover_sitemap ) { |
| 410 |
|
$sitemap_url = $this->finder->construct_sitemap_url( 'sitemap.xml' ); |
| 411 |
|
echo 'Sitemap: ' . esc_url( $sitemap_url ) . "\n"; |
| 412 |
|
} |
| 413 |
|
|
| 414 |
|
/** |
| 415 |
|
* Filter whether to make the news sitemap discoverable to robots or not. Default true. |
|
@@ 424-427 (lines=4) @@
|
| 421 |
|
*/ |
| 422 |
|
$discover_news_sitemap = apply_filters( 'jetpack_news_sitemap_generate', true ); |
| 423 |
|
|
| 424 |
|
if ( true === $discover_news_sitemap ) { |
| 425 |
|
$news_sitemap_url = $this->finder->construct_sitemap_url( 'news-sitemap.xml' ); |
| 426 |
|
echo 'Sitemap: ' . esc_url( $news_sitemap_url ) . "\n"; |
| 427 |
|
} |
| 428 |
|
|
| 429 |
|
return; |
| 430 |
|
} |