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.
Built from https://develop.svn.wordpress.org/trunk@35873


git-svn-id: http://core.svn.wordpress.org/trunk@35837 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Pascal Birchler 2015-12-11 22:03:26 +00:00
parent 4a934d72bb
commit ba9475786a
2 changed files with 2 additions and 2 deletions

View File

@ -293,7 +293,7 @@ function wp_dashboard_right_now() {
update_right_now_message(); update_right_now_message();
// Check if search engines are asked not to index this site. // 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' * Filter the link title attribute for the 'Search Engines Discouraged'

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.5-alpha-35872'; $wp_version = '4.5-alpha-35873';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.