WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/06/2011 11:42:37 PM (10 years ago)
Author:
koopersmith
Message:

Move 'Search Engines Blocked' to 'Right Now' from admin header. see #17324.

File:
1 edited

Legend:

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

    r17799 r17829  
    399399    }
    400400    echo '</p>';
     401
     402    // Check if search engines are blocked.
     403    if ( !is_network_admin() && !is_user_admin() && current_user_can('manage_options') && '1' != get_option('blog_public') ) {
     404        $title = apply_filters('privacy_on_link_title', __('Your site is asking search engines not to index its content') );
     405        $content = apply_filters('privacy_on_link_text', __('Search Engines Blocked') );
     406
     407        echo "<p><a href='options-privacy.php' title='$title'>$content</a></p>";
     408    }
    401409
    402410    update_right_now_message();
Note: See TracChangeset for help on using the changeset viewer.