Changeset 55000
- Timestamp:
- 12/16/2022 10:41:31 AM (23 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/sitemaps/class-wp-sitemaps.php
r54755 r55000 251 251 * @since 5.5.0 252 252 * 253 * @param string $output robots.txt output.254 * @param bool $ public Whether the site is public.253 * @param string $output robots.txt output. 254 * @param bool $is_public Whether the site is public. 255 255 * @return string The robots.txt output. 256 256 */ 257 public function add_robots( $output, $ public ) {258 if ( $ public ) {257 public function add_robots( $output, $is_public ) { 258 if ( $is_public ) { 259 259 $output .= "\nSitemap: " . esc_url( $this->index->get_index_url() ) . "\n"; 260 260 }
Note: See TracChangeset
for help on using the changeset viewer.