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
This commit is contained in:
parent
4a1c73746f
commit
1567de3aaf
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user