[wp-testers] File admin-header.php

Steve stevish at gmail.com
Mon Nov 10 03:29:55 GMT 2008


I'm not having a problem with it, but the new code added will add a class
(class="long-title") if the title is over 30 characters long. But it also
turns an <h1> tag into  <h1 >... I'm not sure if that causes problems in
certain browsers.

How long is the title of your blog?

If it's less than 30 characters, and you're willing to do a little digging,
try editing admin-header.php and changing the following (lines 80-84) from
this:

if ( mb_strlen($blog_name, 'UTF-8') > 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>

to this:

if ( mb_strlen($blog_name, 'UTF-8') > 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>

If you can't see what is changed, I simply added a space before [class] in
[$title_class = 'class="long-title"]', and deleted the space between [<h1]
and [<?php echo $title_class ?>] (without all the square brackets).

I'm assuming that space wouldn't do anything... but you never know.

What browser are you using?

-Steve

On Sun, Nov 9, 2008 at 6:59 PM, Doug Foote <doug at footeco.com> wrote:

> Hi All,
>
> Updated to the latest build r9584 from r9578 and have found that I lost the
> admin panel.
>
> Upon further investigation, I found that the file "admin-header.php" is the
> problem.
>
> All other files in r9584 seem to not cause an issue. In order to use the
> admin panel, I am using the "admin-header.php" from r9578.
>
> Doug Foote
> http://www.crazytrike.com
>
> _______________________________________________
> wp-testers mailing list
> wp-testers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-testers
>


More information about the wp-testers mailing list