diff --git a/wp-includes/sitemaps/class-wp-sitemaps.php b/wp-includes/sitemaps/class-wp-sitemaps.php index 85d3adddb4..d897fa8f2a 100644 --- a/wp-includes/sitemaps/class-wp-sitemaps.php +++ b/wp-includes/sitemaps/class-wp-sitemaps.php @@ -250,12 +250,12 @@ class WP_Sitemaps { * * @since 5.5.0 * - * @param string $output robots.txt output. - * @param bool $public Whether the site is public. + * @param string $output robots.txt output. + * @param bool $is_public Whether the site is public. * @return string The robots.txt output. */ - public function add_robots( $output, $public ) { - if ( $public ) { + public function add_robots( $output, $is_public ) { + if ( $is_public ) { $output .= "\nSitemap: " . esc_url( $this->index->get_index_url() ) . "\n"; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 0a5477621e..65693afab4 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.2-alpha-54999'; +$wp_version = '6.2-alpha-55000'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.