Make WordPress Core


Ignore:
Timestamp:
12/05/2003 09:41:27 AM (23 years ago)
Author:
saxmatt
Message:

Beta multiple category support. Major style changes. You can now add, delete, edit categories through the admin interface.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/b2-include/b2functions.php

    r571 r572  
    681681                ++$i;
    682682                $category->cat_name = stripslashes($category->cat_name);
    683                 echo "<label for='category-$category->cat_ID' class='selectit'><input value='$category->cat_ID' type='checkbox' name='post_category' id='category-$category->cat_ID'";
     683                echo "<label for='category-$i' class='selectit'><input value='$category->cat_ID' type='checkbox' name='post_category[]  ' id='category-$i'";
    684684                if ($postcategories && in_array($category->cat_ID, $postcategories))
    685685                        echo " checked='checked'";
    686                 echo ">$category->cat_name</label> ";
     686                echo " /> $category->cat_name</label> ";
    687687        }
    688688
     
    714714                echo "\t\t\t<option value=\"$i\"";
    715715                if ($i == $mm)
    716                 echo " selected";
     716                echo " selected='selected'";
    717717                if ($i < 10) {
    718718                        $ii = "0".$i;
Note: See TracChangeset for help on using the changeset viewer.