Forums

Join
bbPress Support ForumsRequests and FeedbackMalformed html created by bb_get_forum_dropdown.

Malformed html created by bb_get_forum_dropdown.

  1. When generating a dropdown menu, bb_get_forum_dropdown (from bb-includes/functions.bb-template.php) adds an extra quotation mark inside the select tag like this:
    <select name="forum_id" id="forum-id"">

    When it should be like this:
    <select name="forum_id" id="forum-id">

    The offending line is right here:
    $r .= '<select name="' . $name . '" id="' . $id . '"' . $tab . '">' . "\n";

    To fix this, change it to:
    $r .= '<select name="' . $name . '" id="' . $id . '"' . $tab . '>' . "\n";

  2. Good catch. I opened trac ticket http://trac.bbpress.org/ticket/1256

  3. Thanks, an HTML parser caught it for me though.

  4. This topic is closed