Make WordPress Core

Changeset 11158


Ignore:
Timestamp:
05/02/2009 06:43:04 PM (16 years ago)
Author:
ryan
Message:

Turn off tag cloud filtering when requesting the cloud via AJAX. Props jhodgdon. fixes ##6593

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-ajax.php

    r11109 r11158  
    586586    }
    587587
    588     $return = wp_generate_tag_cloud( $tags );
     588    // We need raw tag names here, so don't filter the output
     589    $return = wp_generate_tag_cloud( $tags, array('filter' => 0) );
    589590
    590591    if ( empty($return) )
  • trunk/wp-includes/category-template.php

    r11109 r11158  
    600600        'format' => 'flat', 'orderby' => 'name', 'order' => 'ASC',
    601601        'topic_count_text_callback' => 'default_topic_count_text',
     602        'filter' => 1,
    602603    );
    603604
     
    681682    endswitch;
    682683
    683     return apply_filters( 'wp_generate_tag_cloud', $return, $tags, $args );
     684    if ( $filter )
     685        return apply_filters( 'wp_generate_tag_cloud', $return, $tags, $args );
     686    else
     687        return $return;
    684688}
    685689
Note: See TracChangeset for help on using the changeset viewer.