Ticket #20238: 20238.diff

File 20238.diff, 945 bytes (added by scribu, 14 months ago)
Line 
1diff --git wp-includes/default-widgets.php wp-includes/default-widgets.php
2index df7ef39..46aa62f 100644
3--- wp-includes/default-widgets.php
4+++ wp-includes/default-widgets.php
5@@ -1033,7 +1033,7 @@ class WP_Widget_Tag_Cloud extends WP_Widget {
6        <input type="text" class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" value="<?php if (isset ( $instance['title'])) {echo esc_attr( $instance['title'] );} ?>" /></p>
7        <p><label for="<?php echo $this->get_field_id('taxonomy'); ?>"><?php _e('Taxonomy:') ?></label>
8        <select class="widefat" id="<?php echo $this->get_field_id('taxonomy'); ?>" name="<?php echo $this->get_field_name('taxonomy'); ?>">
9-       <?php foreach ( get_object_taxonomies('post') as $taxonomy ) :
10+       <?php foreach ( get_taxonomies() as $taxonomy ) :
11                                $tax = get_taxonomy($taxonomy);
12                                if ( !$tax->show_tagcloud || empty($tax->labels->name) )
13                                        continue;