Make WordPress Core

Changeset 2450


Ignore:
Timestamp:
03/16/2005 09:36:18 PM (20 years ago)
Author:
ryan
Message:

Fix all/none handling in dropdown_cats(). http://mosquito.wordpress.org/view.php?id=1120 Props: nbachiyski

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/template-functions-category.php

    r2396 r2450  
    212212    if (intval($optionall) == 1) {
    213213        $all = apply_filters('list_cats', $all);
    214         echo "\t<option value='all'>$all</option>\n";
    215     }
    216     if (intval($optionnone) == 1) echo "\t<option value='0'>None</option>\n";
     214        echo "\t<option value='0'>$all</option>\n";
     215    }
     216    if (intval($optionnone) == 1) echo "\t<option value='-1'>".__('None')."</option>\n";
    217217    if ($categories) {
    218218        foreach ($categories as $category) {
Note: See TracChangeset for help on using the changeset viewer.