mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 17:48:01 +01:00
Move 'Search Engines Blocked' to 'Right Now' from admin header. see #17324.
git-svn-id: http://svn.automattic.com/wordpress/trunk@17829 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2d0f305181
commit
700db493d8
@ -136,9 +136,6 @@ if ( function_exists('mb_strlen') ) {
|
||||
<a href="<?php echo trailingslashit( get_bloginfo( 'url' ) ); ?>" title="<?php esc_attr_e('Visit Site') ?>">
|
||||
<span id="site-title"><?php echo $blog_name ?></span>
|
||||
</a>
|
||||
<?php if ( !is_network_admin() && !is_user_admin() && current_user_can('manage_options') && '1' != get_option('blog_public') ): ?>
|
||||
<a id="privacy-on-link" href="options-privacy.php" title="<?php echo esc_attr( apply_filters('privacy_on_link_title', __('Your site is asking search engines not to index its content') ) ); ?>"><?php echo apply_filters('privacy_on_link_text', __('Search Engines Blocked') ); ?></a>
|
||||
<?php endif; ?>
|
||||
</h1>
|
||||
|
||||
<?php
|
||||
|
File diff suppressed because one or more lines are too long
@ -948,19 +948,10 @@ form.upgrade .hint {
|
||||
float: left;
|
||||
}
|
||||
|
||||
#wphead #privacy-on-link {
|
||||
font-size: 65%;
|
||||
font-style: normal;
|
||||
line-height: 16px;
|
||||
padding: 0 6px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
#wphead h1 a:hover {
|
||||
text-decoration:none;
|
||||
}
|
||||
#wphead h1 a:hover #site-title,
|
||||
#wphead h1 a#privacy-on-link:hover {
|
||||
#wphead h1 a:hover #site-title {
|
||||
text-decoration:underline;
|
||||
}
|
||||
|
||||
|
@ -399,6 +399,14 @@ function wp_dashboard_right_now() {
|
||||
}
|
||||
echo '</p>';
|
||||
|
||||
// Check if search engines are blocked.
|
||||
if ( !is_network_admin() && !is_user_admin() && current_user_can('manage_options') && '1' != get_option('blog_public') ) {
|
||||
$title = apply_filters('privacy_on_link_title', __('Your site is asking search engines not to index its content') );
|
||||
$content = apply_filters('privacy_on_link_text', __('Search Engines Blocked') );
|
||||
|
||||
echo "<p><a href='options-privacy.php' title='$title'>$content</a></p>";
|
||||
}
|
||||
|
||||
update_right_now_message();
|
||||
|
||||
echo "\n\t".'<br class="clear" /></div>';
|
||||
|
@ -485,7 +485,7 @@ function wp_default_styles( &$styles ) {
|
||||
// Any rtl stylesheets that don't have a .dev version for ltr
|
||||
$no_suffix = array( 'farbtastic' );
|
||||
|
||||
$styles->add( 'wp-admin', "/wp-admin/css/wp-admin$suffix.css", array(), '20110506c' );
|
||||
$styles->add( 'wp-admin', "/wp-admin/css/wp-admin$suffix.css", array(), '20110506d' );
|
||||
|
||||
$styles->add( 'ie', "/wp-admin/css/ie$suffix.css", array(), '20101102' );
|
||||
$styles->add_data( 'ie', 'conditional', 'lte IE 7' );
|
||||
|
Loading…
Reference in New Issue
Block a user