Excerpt title at 60 characters
git-svn-id: http://svn.automattic.com/wordpress/trunk@10165 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4483f075d5
commit
6aa69d6500
wp-admin
|
@ -83,8 +83,14 @@ if ( $is_iphone ) { ?>
|
|||
<div id="wphead">
|
||||
<?php
|
||||
$blog_name = get_bloginfo('name', 'display');
|
||||
if ( '' == $blog_name )
|
||||
if ( '' == $blog_name ) {
|
||||
$blog_name = ' ';
|
||||
} else {
|
||||
$blog_name_excerpt = wp_html_excerpt($blog_name, 60);
|
||||
if ( $blog_name != $blog_name_excerpt )
|
||||
$blog_name_excerpt = trim($blog_name_excerpt) . '…';
|
||||
$blog_name = $blog_name_excerpt;
|
||||
}
|
||||
$title_class = '';
|
||||
if ( function_exists('mb_strlen') ) {
|
||||
if ( mb_strlen($blog_name, 'UTF-8') > 30 )
|
||||
|
|
Loading…
Reference in New Issue