WordPress.org

Support

Support » Requests and Feedback » Double-quoted attribute values! (Patch included)

Double-quoted attribute values! (Patch included)

  • Links in the sidebar were showing up with single-quoted attribute values, which isn’t XHTML compliant.

    Here’s my quick patch:


    219c219
    < $rel = " rel='$rel'";
    ---
    > $rel = " rel=\"$rel\"";
    234c234
    < $title = " title='$title'";
    ---
    > $title = " title=\"$title\"";
    237c237
    < $alt = " alt='$name'";
    ---
    > $alt = " alt=\"$name\"";
    241c241
    < $target = " target='$target'";
    ---
    > $target = " target=\"$target\"";
    244c244
    < $output.= "<a href='$the_link'";
    ---
    > $output.= "<a href=\"$the_link\"";
    250c250
    < $output.= "<img src='$row->link_image' $alt $title />";
    ---
    > $output.= "<img src=\"$row->link_image\" $alt $title />";
    252c252
    < $output.= "<img src='" . get_settings('siteurl') . "$row->link_image' $alt $title />";
    ---
    > $output.= "<img src=\"" . get_settings('siteurl') . "$row->link_image\" $alt $title />";

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Double-quoted attribute values! (Patch included)’ is closed to new replies.