Make WordPress Core

Changeset 4964


Ignore:
Timestamp:
03/04/2007 01:59:57 AM (17 years ago)
Author:
ryan
Message:

Pass along all parameters to get_bookmarks(). Props Otto42. fixes #3898

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/bookmark-template.php

    r4953 r4964  
    332332
    333333        foreach ( (array) $cats as $cat ) {
    334             $bookmarks = get_bookmarks("limit=$limit&category={$cat->cat_ID}&show_updated=$show_updated&orderby=$orderby&order=$order&hide_invisible=$hide_invisible&show_updated=$show_updated");
     334            $params = array_merge($r, array('category'=>$cat->cat_ID));
     335            $bookmarks = get_bookmarks($params);
    335336            if ( empty($bookmarks) )
    336337                continue;
     
    342343    } else {
    343344        //output one single list using title_li for the title
    344         $bookmarks = get_bookmarks("limit=$limit&category=$category&show_updated=$show_updated&orderby=$orderby&order=$order&hide_invisible=$hide_invisible&show_updated=$show_updated");
     345        $bookmarks = get_bookmarks($r);
    345346
    346347        if ( !empty($bookmarks) ) {
Note: See TracChangeset for help on using the changeset viewer.