Make WordPress Core

Changeset 3606


Ignore:
Timestamp:
03/04/2006 08:39:51 PM (19 years ago)
Author:
ryan
Message:

Back compat fixes for get_links().

File:
1 edited

Legend:

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

    r3605 r3606  
    7373    global $wpdb;
    7474
    75     $results = get_bookmarks("category=$category&orderby=$orderby&show_updated=$show_updated&limit=$limit");
     75    $order = 'ASC';
     76    if (substr($orderby, 0, 1) == '_') {
     77        $order = 'DESC';
     78        $orderby = substr($orderby, 1);
     79    }
     80
     81    $results = get_bookmarks("category=$category&orderby=$orderby&order=$order&show_updated=$show_updated&limit=$limit");
    7682
    7783    if (!$results) {
Note: See TracChangeset for help on using the changeset viewer.