WordPress.org

Make WordPress Core

Changeset 14131


Ignore:
Timestamp:
04/18/10 04:45:09 (4 years ago)
Author:
nacin
Message:

Allow orberby in wp_list_bookmarks to accept a comma-delimited list of fields, per docs. fixes #12421, props sorich87, scribu.

File:
1 edited

Legend:

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

    r13093 r14131  
    222222            break; 
    223223        default: 
    224             $orderby = "link_" . $orderby; 
     224            $orderparams = array(); 
     225            foreach ( explode(',', $orderby) as $ordparam ) 
     226                $orderparams[] = 'link_' . trim($ordparam); 
     227            $orderby = implode(',', $orderparams); 
    225228    } 
    226229 
Note: See TracChangeset for help on using the changeset viewer.