From 1567de3aaff451398a043c80ba0375ca1c03edc6 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 26 Jul 2011 21:22:13 +0000 Subject: [PATCH] Allow sorting by id in get_bookmarks(). Props SergeyBiryukov. see #18234 for trunk git-svn-id: https://develop.svn.wordpress.org/trunk@18470 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/bookmark.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/bookmark.php b/wp-includes/bookmark.php index e1184231c4..ee621a0787 100644 --- a/wp-includes/bookmark.php +++ b/wp-includes/bookmark.php @@ -227,7 +227,7 @@ function get_bookmarks($args = '') { $orderparams = array(); foreach ( explode(',', $orderby) as $ordparam ) { $ordparam = trim($ordparam); - if ( in_array( $ordparam, array( 'name', 'url', 'visible', 'rating', 'owner', 'updated' ) ) ) + if ( in_array( $ordparam, array( 'id', 'name', 'url', 'visible', 'rating', 'owner', 'updated' ) ) ) $orderparams[] = 'link_' . $ordparam; } $orderby = implode(',', $orderparams);