wp-includes/robots-template.php:70Adds noindex to the robots meta tag if required by the site configuration.
$robotsarrayarrayfunction wp_robots_noindex( array $robots ) { if ( ! get_option( 'blog_public' ) ) { return wp_robots_no_robots( $robots ); } return $robots;}Introduced in 5.7.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-includes/robots-template.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.