Make WordPress Core

Changeset 10165


Ignore:
Timestamp:
12/10/2008 06:19:24 AM (16 years ago)
Author:
ryan
Message:

Excerpt title at 60 characters

File:
1 edited

Legend:

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

    r10140 r10165  
    8484<?php
    8585$blog_name = get_bloginfo('name', 'display');
    86 if ( '' == $blog_name )
     86if ( '' == $blog_name ) {
    8787    $blog_name = '&nbsp;';
     88} else {
     89    $blog_name_excerpt = wp_html_excerpt($blog_name, 60);
     90    if ( $blog_name != $blog_name_excerpt )
     91        $blog_name_excerpt = trim($blog_name_excerpt) . '&hellip;';
     92    $blog_name = $blog_name_excerpt;
     93}
    8894$title_class = '';
    8995if ( function_exists('mb_strlen') ) {
Note: See TracChangeset for help on using the changeset viewer.