Make WordPress Core


Ignore:
Timestamp:
12/06/2007 07:49:33 PM (17 years ago)
Author:
ryan
Message:

Remove unused vars. Props DD32. see #5418

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/category.php

    r6125 r6364  
    22
    33function get_all_category_ids() {
    4     global $wpdb;
    5 
    64    if ( ! $cat_ids = wp_cache_get('all_category_ids', 'category') ) {
    75        $cat_ids = get_terms('category', 'fields=ids&get=all');
     
    4038
    4139function get_category_by_path($category_path, $full_match = true, $output = OBJECT) {
    42     global $wpdb;
    4340    $category_path = rawurlencode(urldecode($category_path));
    4441    $category_path = str_replace('%2F', '/', $category_path);
     
    8784// Get the ID of a category from its name
    8885function get_cat_ID($cat_name='General') {
    89     global $wpdb;
    90 
    9186    $cat = get_term_by('name', $cat_name, 'category');
    9287    if ($cat)
     
    133128
    134129function &get_tags($args = '') {
    135     global $wpdb, $category_links;
    136 
    137130    $key = md5( serialize( $args ) );
    138131    if ( $cache = wp_cache_get( 'get_tags', 'category' ) )
Note: See TracChangeset for help on using the changeset viewer.