Changeset 10269
- Timestamp:
- 09/16/2020 09:34:15 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/wporg-robots.php
r10258 r10269 59 59 } 60 60 add_filter( 'robots_txt', 'wporg_robots_prefix_sitemaps', 1 ); 61 62 // Remove the Jetpack News sitemap when there's no news on the site.63 // Remove once the upstream Jetpack issue is closed or merged https://meta.trac.wordpress.org/ticket/543864 add_filter( 'jetpack_news_sitemap_include_in_robotstxt', function( $include ) {65 if ( $include && empty( wp_count_posts()->publish ) ) {66 $include = false;67 }68 69 return $include;70 } );
Note: See TracChangeset
for help on using the changeset viewer.