mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Beta multiple category support. Major style changes. You can now add, delete, edit categories through the admin interface.
git-svn-id: https://develop.svn.wordpress.org/trunk@572 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1247,12 +1247,14 @@ function the_category($seperator = '') {
|
||||
if ('' == $seperator) {
|
||||
echo '<ul class="post-categories">';
|
||||
foreach ($categories as $category) {
|
||||
$category->cat_name = stripslashes($category->cat_name);
|
||||
echo "\n\t<li><a href='" . get_category_link(0, $category->category_id) . "' title='View all posts in $category->cat_name'>$category->cat_name</a></li>";
|
||||
}
|
||||
echo '</ul>';
|
||||
} else {
|
||||
$i = 0;
|
||||
foreach ($categories as $category) {
|
||||
$category->cat_name = stripslashes($category->cat_name);
|
||||
if (0 < $i) echo $seperator . ' ';
|
||||
echo "<a href='" . get_category_link(0, $category->category_id) . "' title='View all posts in $category->cat_name'>$category->cat_name</a>";
|
||||
++$i;
|
||||
|
||||
Reference in New Issue
Block a user