Make WordPress Core

Changeset 20285


Ignore:
Timestamp:
03/24/2012 02:00:52 PM (13 years ago)
Author:
nacin
Message:

Use get_taxonomies() instead of get_object_taxonomies() in the tag cloud widget. props GautamGupta, scribu. see #20238, see #16125.

File:
1 edited

Legend:

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

    r20245 r20285  
    10541054    <p><label for="<?php echo $this->get_field_id('taxonomy'); ?>"><?php _e('Taxonomy:') ?></label>
    10551055    <select class="widefat" id="<?php echo $this->get_field_id('taxonomy'); ?>" name="<?php echo $this->get_field_name('taxonomy'); ?>">
    1056     <?php foreach ( get_object_taxonomies('post') as $taxonomy ) :
     1056    <?php foreach ( get_taxonomies() as $taxonomy ) :
    10571057                $tax = get_taxonomy($taxonomy);
    10581058                if ( !$tax->show_tagcloud || empty($tax->labels->name) )
Note: See TracChangeset for help on using the changeset viewer.