Fix all/none handling in dropdown_cats(). http://mosquito.wordpress.org/view.php?id=1120 Props: nbachiyski
git-svn-id: https://develop.svn.wordpress.org/trunk@2450 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
49ad85de58
commit
95e5d37a0d
@ -211,9 +211,9 @@ function dropdown_cats($optionall = 1, $all = 'All', $sort_column = 'ID', $sort_
|
||||
echo "<select name='cat' class='postform'>\n";
|
||||
if (intval($optionall) == 1) {
|
||||
$all = apply_filters('list_cats', $all);
|
||||
echo "\t<option value='all'>$all</option>\n";
|
||||
echo "\t<option value='0'>$all</option>\n";
|
||||
}
|
||||
if (intval($optionnone) == 1) echo "\t<option value='0'>None</option>\n";
|
||||
if (intval($optionnone) == 1) echo "\t<option value='-1'>".__('None')."</option>\n";
|
||||
if ($categories) {
|
||||
foreach ($categories as $category) {
|
||||
$cat_name = apply_filters('list_cats', $category->cat_name, $category);
|
||||
@ -409,4 +409,4 @@ function in_category($category) { // Check if the current post is in the given c
|
||||
else
|
||||
return false;
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user