Make WordPress Core


Ignore:
Timestamp:
12/23/2009 03:31:02 PM (14 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/deprecated.php

    r12459 r12515  
    987987        $category = '';
    988988
    989     $results = get_bookmarks("category=$category&orderby=$orderby&order=$order&show_updated=$show_updated&limit=$limit");
     989    $results = get_bookmarks(array('category' => $category, 'orderby' => $orderby, 'order' => $order, 'show_updated' => $show_updated, 'limit' => $limit));
    990990
    991991    if ( !$results )
     
    10841084        $direction = '';
    10851085
    1086     $cats = get_categories("type=link&orderby=$order&order=$direction&hierarchical=0");
     1086    $cats = get_categories(array('type' => 'link', 'orderby' => $order, 'order' => $direction, 'hierarchical' => 0));
    10871087
    10881088    // Display each category
Note: See TracChangeset for help on using the changeset viewer.