From 64b89c09f0466aa8a9a6f13f52e0de584d7af5e4 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Fri, 11 Dec 2015 22:02:27 +0000 Subject: [PATCH] Dashboard: Do not show "Search Engines Discouraged" text when the `blog_public` option is not set. Search engines are only discouraged from indexing the site when the option is explicitly set to `0`. Fixes #34860. git-svn-id: https://develop.svn.wordpress.org/trunk@35873 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/dashboard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/dashboard.php b/src/wp-admin/includes/dashboard.php index 42da6ea9c8..73146e583b 100644 --- a/src/wp-admin/includes/dashboard.php +++ b/src/wp-admin/includes/dashboard.php @@ -293,7 +293,7 @@ function wp_dashboard_right_now() { update_right_now_message(); // Check if search engines are asked not to index this site. - if ( ! is_network_admin() && ! is_user_admin() && current_user_can( 'manage_options' ) && '1' != get_option( 'blog_public' ) ) { + if ( ! is_network_admin() && ! is_user_admin() && current_user_can( 'manage_options' ) && '0' == get_option( 'blog_public' ) ) { /** * Filter the link title attribute for the 'Search Engines Discouraged'