Make WordPress Core


Ignore:
Timestamp:
12/23/2009 03:31:02 PM (16 years ago)
Author:
ryan
Message:

Use array calling style. Props Denis-de-Bernardy. see #6647

File:
1 edited

Legend:

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

    r11031 r12515  
    1616function get_all_category_ids() {
    1717    if ( ! $cat_ids = wp_cache_get( 'all_category_ids', 'category' ) ) {
    18         $cat_ids = get_terms( 'category', 'fields=ids&get=all' );
     18        $cat_ids = get_terms( 'category', array('fields' => 'ids', 'get' => 'all') );
    1919        wp_cache_add( 'all_category_ids', $cat_ids, 'category' );
    2020    }
     
    114114        $full_path .= ( $pathdir != '' ? '/' : '' ) . sanitize_title( $pathdir );
    115115
    116     $categories = get_terms( 'category', "get=all&slug=$leaf_path" );
     116    $categories = get_terms( 'category', array('get' => 'all', 'slug' => $leaf_path) );
    117117
    118118    if ( empty( $categories ) )
Note: See TracChangeset for help on using the changeset viewer.