WordPress.org

Make WordPress Core

Changeset 9235


Ignore:
Timestamp:
10/17/08 21:16:47 (6 years ago)
Author:
ryan
Message:

Make blog name a link to site

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-header.php

    r9224 r9235  
    7474<div id="wphead"> 
    7575<?php 
    76 if ( 'index.php' == $pagenow ) { 
    77     $breadcrumb = __('Dashboard'); 
    78 } else { 
    79     $breadcrumb = '<a href="index.php">' . __('Dashboard') . '</a> &rsaquo; ' . $title; 
    80 } 
    81  
    8276$settings_pages = array( 'categories.php', 'edit.php', 'edit-comments.php', 'edit-form-advanced.php', 'edit-link-categories.php', 'edit-link-form.php', 'edit-page-form.php', 'edit-tags.php', 'link-manager.php', 'upload.php', 'users.php', 'edit-pages.php', 'post-new.php', 'post.php', 'page-new.php', 'page.php', 'index.php' ); 
     77$blog_name = get_bloginfo('name', 'display'); 
     78if ( '' == $blog_name ) 
     79    $blog_name = '&nbsp;'; 
    8380?> 
    8481 
    85 <img id="logo50" src="images/wp-logo.gif" alt="" /> <h1><?php if ( '' == get_bloginfo('name', 'display') ) echo '&nbsp;'; else echo get_bloginfo('name', 'display'); ?> <a href="<?php echo trailingslashit( get_bloginfo('url') ); ?>" title="View site" id="view-site-link"><!--<img src="<?php echo trailingslashit( bloginfo('wpurl') ) . 'wp-admin/images/new-window-icon.gif'; ?>" alt="" />--></a> 
    86 <!--<span id="breadcrumb"><?php echo $breadcrumb ?></span>--> 
     82<img id="logo50" src="images/wp-logo.gif" alt="" /> <h1><a href="<?php echo trailingslashit( get_bloginfo('url') ); ?>" title="<?php _e('Visit site') ?>"><?php echo $blog_name ?></a> 
    8783<?php if ( in_array( $pagenow, $settings_pages ) ) { ?> 
    8884<span id="edit-settings"> 
Note: See TracChangeset for help on using the changeset viewer.