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
This commit is contained in:
parent
3348774d3a
commit
64b89c09f0
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue