WordPress.org

Make WordPress Core

Ticket #12211: admin-header.patch

File admin-header.patch, 1.1 KB (added by scottbasgaard, 5 years ago)

If blog visibility is disabled "Privacy On" will display in the wp-admin h1.

  • admin-header.php

    old new  
    9595} 
    9696?> 
    9797 
    98 <img id="header-logo" src="../wp-includes/images/blank.gif" alt="" width="32" height="32" /> <h1 id="site-heading" <?php echo $title_class ?>><a href="<?php echo trailingslashit( get_bloginfo('url') ); ?>" title="<?php _e('Visit Site') ?>"><span id="site-title"><?php echo $blog_name ?></span> <em id="site-visit-button"><?php _e('Visit Site') ?></em></a></h1> 
     98<img id="header-logo" src="../wp-includes/images/blank.gif" alt="" width="32" height="32" /> <h1 id="site-heading" <?php echo $title_class ?>><a href="<?php echo trailingslashit( get_bloginfo('url') ); ?>" title="<?php _e('Visit Site') ?>"><span id="site-title"><?php echo $blog_name ?></span> <em id="site-visit-button"><?php _e('Visit Site') ?></em></a> <?php if ( ! get_option('blog_public') ) { ?><a href="options-privacy.php" title="<?php _e('Your blog is hidden from search engines') ?>"><em id="site-visit-button"><?php _e('Privacy On') ?></em></a> <?php } ?></h1> 
    9999 
    100100<div id="wphead-info"> 
    101101<div id="user_info">