Make WordPress Core


Ignore:
Timestamp:
05/14/2010 12:34:04 AM (14 years ago)
Author:
nbachiyski
Message:

I18n for custom taxonomies. Fixes #13357

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/default-widgets.php

    r14607 r14614  
    10041004            } else {
    10051005                $tax = get_taxonomy($current_taxonomy);
    1006                 $title = $tax->label;
     1006                $title = $tax->labels->name;
    10071007            }
    10081008        }
     
    10331033    <?php foreach ( get_object_taxonomies('post') as $taxonomy ) :
    10341034                $tax = get_taxonomy($taxonomy);
    1035                 if ( !$tax->show_tagcloud || empty($tax->label) )
     1035                if ( !$tax->show_tagcloud || empty($tax->labels->name) )
    10361036                    continue;
    10371037    ?>
    1038         <option value="<?php echo esc_attr($taxonomy) ?>" <?php selected($taxonomy, $current_taxonomy) ?>><?php echo $tax->label ?></option>
     1038        <option value="<?php echo esc_attr($taxonomy) ?>" <?php selected($taxonomy, $current_taxonomy) ?>><?php echo $tax->labels->name; ?></option>
    10391039    <?php endforeach; ?>
    10401040    </select></p><?php
Note: See TracChangeset for help on using the changeset viewer.