mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-09 07:00:01 +00:00
Back compat fixes for get_links().
git-svn-id: http://svn.automattic.com/wordpress/trunk@3606 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
150bb1dcee
commit
91621266c1
@ -72,7 +72,13 @@ function get_links($category = -1,
|
|||||||
|
|
||||||
global $wpdb;
|
global $wpdb;
|
||||||
|
|
||||||
$results = get_bookmarks("category=$category&orderby=$orderby&show_updated=$show_updated&limit=$limit");
|
$order = 'ASC';
|
||||||
|
if (substr($orderby, 0, 1) == '_') {
|
||||||
|
$order = 'DESC';
|
||||||
|
$orderby = substr($orderby, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
$results = get_bookmarks("category=$category&orderby=$orderby&order=$order&show_updated=$show_updated&limit=$limit");
|
||||||
|
|
||||||
if (!$results) {
|
if (!$results) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user