WordPress.org

Make WordPress Core

Ticket #20238: 20238.diff

File 20238.diff, 945 bytes (added by scribu, 3 years ago)
  • wp-includes/default-widgets.php

    diff --git wp-includes/default-widgets.php wp-includes/default-widgets.php
    index df7ef39..46aa62f 100644
    class WP_Widget_Tag_Cloud extends WP_Widget { 
    10331033        <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> 
    10341034        <p><label for="<?php echo $this->get_field_id('taxonomy'); ?>"><?php _e('Taxonomy:') ?></label> 
    10351035        <select class="widefat" id="<?php echo $this->get_field_id('taxonomy'); ?>" name="<?php echo $this->get_field_name('taxonomy'); ?>"> 
    1036         <?php foreach ( get_object_taxonomies('post') as $taxonomy ) : 
     1036        <?php foreach ( get_taxonomies() as $taxonomy ) : 
    10371037                                $tax = get_taxonomy($taxonomy); 
    10381038                                if ( !$tax->show_tagcloud || empty($tax->labels->name) ) 
    10391039                                        continue;