WordPress.org

Make WordPress Core

Changeset 18470


Ignore:
Timestamp:
07/26/2011 09:22:13 PM (10 years ago)
Author:
ryan
Message:

Allow sorting by id in get_bookmarks(). Props SergeyBiryukov. see #18234 for trunk

File:
1 edited

Legend:

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

    r18345 r18470  
    228228            foreach ( explode(',', $orderby) as $ordparam ) {
    229229                $ordparam = trim($ordparam);
    230                 if ( in_array( $ordparam, array( 'name', 'url', 'visible', 'rating', 'owner', 'updated' ) ) )
     230                if ( in_array( $ordparam, array( 'id', 'name', 'url', 'visible', 'rating', 'owner', 'updated' ) ) )
    231231                    $orderparams[] = 'link_' . $ordparam;
    232232            }
Note: See TracChangeset for help on using the changeset viewer.