wp-admin/includes/class-wp-site-health.php:2723Tests whether search engine indexing is enabled.
array public function get_test_search_engine_visibility() { $result = array( 'label' => __( 'Search engine indexing is enabled.', 'default' ), 'status' => 'good', 'badge' => array( 'label' => __( 'Privacy', 'default' ), 'color' => 'blue', ), 'description' => sprintf( '<p>%s</p>', __( 'Search engines can crawl and index your site. No action needed.', 'default' ) ), 'actions' => sprintf( '<p><a href="%1$s">%2$s</a></p>', esc_url( admin_url( 'options-reading.php#blog_public' ) ), __( 'Review your visibility settings', 'default' ) ), 'test' => 'search_engine_visibility', ); // If indexing is discouraged, flip to “recommended”: if ( ! get_option( 'blog_public' ) ) { $result['status'] = 'recommended'; $result['label'] = __( 'Search engines are discouraged from indexing this site.', 'default' ); $result['badge']['color'] = 'blue'; $result['description'] = sprintf( '<p>%s</p>', __( 'Your site is hidden from search engines. Consider enabling indexing if this is a public site.', 'default' ) ); } return $result; }Introduced in 6.9.0. Unchanged from 6.9.7 through 7.1.0.
Signature, return type and hooks compared across 3 parsed releases.
src/wp-admin/includes/class-wp-site-health.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.