The MU forums have moved to WordPress.org

Missing Semi Colon in wp-admin/index.php (3 posts)

  1. SteveAtty
    Member
    Posted 16 years ago #

    I've just upgraded to 1.2.3 and Firebug is reporting "missing ; before statement" on the line that starts:

    document.getElementById('wphead').innerHTML = '<h1><span id="blog-title"

    which is in the dashboard switcher.

    The problem is caused by the fact that one of the blogs is called Steve's Rambings and the ' gets Javascript all confused!

    To fix this line 81 needs changing to:

    $out .= '
    <li><a>domain . $blog->path . 'wp-admin/">' . addslashes($blog->blogname) . '</a></li>
    ';

    I'll raise this in tracker.

  2. lunabyte
    Member
    Posted 16 years ago #

    I ended up taking the whole plugin out.

    It made the blog title disappear, and no drop down list at all.

    I'd say it's something on my end, but that particular area in the header I haven't touched. My first edit comes for the menus, where I made them translucent drop downs.

  3. drmike
    Member
    Posted 16 years ago #

    Gotta admit that I agree. I liked my solution better.

    I would open up a trac ticket. It's not reported until you do that.

About this Topic

  • Started 16 years ago by SteveAtty
  • Latest reply from drmike