Support » Fixing WordPress » 1.5, Link cats and the h2 tag

  • Mark (podz)

    (@podz)


    Support Maven

    wp-includes/links.php

    1.2.2
    Line 562
    // Display the category name
    echo " <li id="".sanitize_title($cat["cat_name"])."">" . stripslashes($cat["cat_name"]) . "nt<ul>n";

    1.5
    Line 503
    // Display the category name
    echo " <li id="linkcat-" . $cat["link_category"] . ""><h2>" . $cat["cat_name"] . "</h2>nt<ul>n";

    Remove the <h2> and </h2> tags to revert back if you have upgraded and this is causing problems ?

    **Untested – keep a backup.

Viewing 8 replies - 1 through 8 (of 8 total)
  • why is the li and h2 tags doing there in the first place? Should that be up to the user to decide if he wants to use h2 and li for the links?

    Thanks for pointing it out Podz

    Mark (podz)

    (@podz)

    Support Maven

    It is now line 551 in 1.5.1

    Moderator Matt Mullenweg

    (@matt)

    Instead of editing the file, you can use CSS to make the <h2>s appear just like they did before.

    Mark (podz)

    (@podz)

    Support Maven

    True ! 🙂

    moshu

    (@moshu)

    Wouldn’t be easier NOT to have this h2 in the code since nobody really wants it???

    >Wouldn’t be easier NOT to have this h2 in the code since >nobody really wants it???

    I agree, why is the h2 tag only in the Links section? Are links more important than Categories, and Archives? It’s annoying to hunt down and rip out the h2 code every time I upgrade.

    If the h2 tag is going to be in the link header then use it with the other headers (Categories, and Archives). Have a litte consistency.

    I know it’s been a long time but. Thank You!!!!!!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘1.5, Link cats and the h2 tag’ is closed to new replies.