Index: src/wp-admin/includes/dashboard.php
===================================================================
--- src/wp-admin/includes/dashboard.php	(revision 57077)
+++ src/wp-admin/includes/dashboard.php	(working copy)
@@ -371,7 +371,7 @@
 
 	// Check if search engines are asked not to index this site.
 	if ( ! is_network_admin() && ! is_user_admin()
-		&& current_user_can( 'manage_options' ) && ! get_option( 'blog_public' )
+		&& current_user_can( 'manage_options' ) && 1 !== get_option( 'blog_public' )
 	) {
 
 		/**
Index: src/wp-admin/options.php
===================================================================
--- src/wp-admin/options.php	(revision 57077)
+++ src/wp-admin/options.php	(working copy)
@@ -179,8 +179,11 @@
 	$allowed_options['general'][] = 'default_role';
 
 	$allowed_options['writing']   = array_merge( $allowed_options['writing'], $mail_options );
-	$allowed_options['writing'][] = 'ping_sites';
 
+	if ( '1' === get_option( 'blog_public' ) ) {
+		$allowed_options['writing'][] = 'ping_sites';
+	}
+
 	$allowed_options['media'][] = 'uploads_use_yearmonth_folders';
 
 	/*
Index: src/wp-includes/comment.php
===================================================================
--- src/wp-includes/comment.php	(revision 57077)
+++ src/wp-includes/comment.php	(working copy)
@@ -3155,7 +3155,7 @@
  * @return mixed Empty string if blog is not public, returns $sites, if site is public.
  */
 function privacy_ping_filter( $sites ) {
-	if ( '0' != get_option( 'blog_public' ) ) {
+	if ( '1' === get_option( 'blog_public' ) ) {
 		return $sites;
 	} else {
 		return '';
Index: src/wp-includes/deprecated.php
===================================================================
--- src/wp-includes/deprecated.php	(revision 57077)
+++ src/wp-includes/deprecated.php	(working copy)
@@ -4145,7 +4145,7 @@
 	_deprecated_function( __FUNCTION__, '5.7.0', 'wp_robots_noindex()' );
 
 	// If the blog is not public, tell robots to go away.
-	if ( '0' == get_option( 'blog_public' ) ) {
+	if ( '1' !== get_option( 'blog_public' ) ) {
 		wp_no_robots();
 	}
 }
@@ -4166,7 +4166,7 @@
 function wp_no_robots() {
 	_deprecated_function( __FUNCTION__, '5.7.0', 'wp_robots_no_robots()' );
 
-	if ( get_option( 'blog_public' ) ) {
+	if ( '1' === get_option( 'blog_public' ) ) {
 		echo "<meta name='robots' content='noindex,follow' />\n";
 		return;
 	}
Index: src/wp-includes/functions.php
===================================================================
--- src/wp-includes/functions.php	(revision 57077)
+++ src/wp-includes/functions.php	(working copy)
@@ -1707,7 +1707,7 @@
 	do_action( 'do_robotstxt' );
 
 	$output = "User-agent: *\n";
-	$public = get_option( 'blog_public' );
+	$public = (bool) get_option( 'blog_public' );
 
 	$site_url = parse_url( site_url() );
 	$path     = ( ! empty( $site_url['path'] ) ) ? $site_url['path'] : '';
Index: src/wp-includes/robots-template.php
===================================================================
--- src/wp-includes/robots-template.php	(revision 57077)
+++ src/wp-includes/robots-template.php	(working copy)
@@ -68,7 +68,7 @@
  * @return array Filtered robots directives.
  */
 function wp_robots_noindex( array $robots ) {
-	if ( ! get_option( 'blog_public' ) ) {
+	if ( '1' !== get_option( 'blog_public' ) ) {
 		return wp_robots_no_robots( $robots );
 	}
 
@@ -140,7 +140,7 @@
 function wp_robots_no_robots( array $robots ) {
 	$robots['noindex'] = true;
 
-	if ( get_option( 'blog_public' ) ) {
+	if ( '1' === get_option( 'blog_public' ) ) {
 		$robots['follow'] = true;
 	} else {
 		$robots['nofollow'] = true;
@@ -186,7 +186,7 @@
  * @return array Filtered robots directives.
  */
 function wp_robots_max_image_preview_large( array $robots ) {
-	if ( get_option( 'blog_public' ) ) {
+	if ( '1' === get_option( 'blog_public' ) ) {
 		$robots['max-image-preview'] = 'large';
 	}
 	return $robots;
Index: src/wp-signup.php
===================================================================
--- src/wp-signup.php	(revision 57077)
+++ src/wp-signup.php	(working copy)
@@ -199,7 +199,7 @@
 
 		$blog_public_on_checked  = '';
 		$blog_public_off_checked = '';
-	if ( isset( $_POST['blog_public'] ) && '0' === $_POST['blog_public'] ) {
+	if ( isset( $_POST['blog_public'] ) && '1' !== $_POST['blog_public'] ) {
 		$blog_public_off_checked = 'checked="checked"';
 	} else {
 		$blog_public_on_checked = 'checked="checked"';
