Make WordPress Core


Ignore:
Timestamp:
12/11/2015 10:02:27 PM (10 years ago)
Author:
swissspidy
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/dashboard.php

    r35811 r35873  
    294294
    295295    // Check if search engines are asked not to index this site.
    296     if ( ! is_network_admin() && ! is_user_admin() && current_user_can( 'manage_options' ) && '1' != get_option( 'blog_public' ) ) {
     296    if ( ! is_network_admin() && ! is_user_admin() && current_user_can( 'manage_options' ) && '0' == get_option( 'blog_public' ) ) {
    297297
    298298        /**
Note: See TracChangeset for help on using the changeset viewer.