Notice fixes from DD32. see #7509

git-svn-id: https://develop.svn.wordpress.org/trunk@9596 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-11-10 18:54:18 +00:00
parent e25c585f4f
commit 83e002f20b
16 changed files with 54 additions and 40 deletions

View File

@@ -77,8 +77,13 @@ $blog_name = get_bloginfo('name', 'display');
if ( '' == $blog_name )
$blog_name = ' ';
$title_class = '';
if ( function_exists('mb_strlen') && mb_strlen($blog_name, 'UTF-8') > 30 )
$title_class = 'class="long-title"';
if ( function_exists('mb_strlen') ) {
if ( mb_strlen($blog_name, 'UTF-8') > 30 )
$title_class = 'class="long-title"';
} else {
if ( strlen($blog_name) > 30 )
$title_class = 'class="long-title"';
}
?>
<img id="logo50" src="images/wp-logo.gif" alt="" /> <h1 <?php echo $title_class ?>><a href="<?php echo trailingslashit( get_bloginfo('url') ); ?>" title="<?php _e('Visit site') ?>"><?php echo $blog_name ?></a></h1>