Use get_taxonomies() instead of get_object_taxonomies() in the tag cloud widget. props GautamGupta, scribu. see #20238, see #16125.
git-svn-id: https://develop.svn.wordpress.org/trunk@20285 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
94789b3b7c
commit
6624783c75
@ -1053,7 +1053,7 @@ class WP_Widget_Tag_Cloud extends WP_Widget {
|
||||
<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>
|
||||
<p><label for="<?php echo $this->get_field_id('taxonomy'); ?>"><?php _e('Taxonomy:') ?></label>
|
||||
<select class="widefat" id="<?php echo $this->get_field_id('taxonomy'); ?>" name="<?php echo $this->get_field_name('taxonomy'); ?>">
|
||||
<?php foreach ( get_object_taxonomies('post') as $taxonomy ) :
|
||||
<?php foreach ( get_taxonomies() as $taxonomy ) :
|
||||
$tax = get_taxonomy($taxonomy);
|
||||
if ( !$tax->show_tagcloud || empty($tax->labels->name) )
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user