Changeset 8994

Show
Ignore:
Timestamp:
09/27/08 04:56:51 (2 months ago)
Author:
ryan
Message:

Breadcrumb tweaks

Files:

Legend:

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

    r8993 r8994  
    8181<div id="wpcontent"> 
    8282<div id="wphead"> 
    83 <h1><?php if ( '' == get_bloginfo('name', 'display') ) echo '&nbsp;'; else echo get_bloginfo('name', 'display'); ?><span id="breadcrumb"><a href="index.php"><?php _e('Dashboard') ?></a> &rsaquo; <?php echo $title ?></span></h1> 
     83<?php 
     84if ( 'index.php' == $pagenow ) { 
     85    $breadcrumb = __('Dashboard'); 
     86} else { 
     87    $breadcrumb = '<a href="index.php">' . __('Dashboard') . '</a> &rsaquo; ' . $title; 
     88
     89?> 
     90<h1><?php if ( '' == get_bloginfo('name', 'display') ) echo '&nbsp;'; else echo get_bloginfo('name', 'display'); ?><span id="breadcrumb"><?php echo $breadcrumb ?></span></h1> 
    8491</div> 
    8592