Allow bookmarks to be ordered by `link_description` in `get_bookmarks()`.
Fixes #29763. Built from https://develop.svn.wordpress.org/trunk@29778 git-svn-id: http://core.svn.wordpress.org/trunk@29550 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
668e758a78
commit
b646f9df6a
|
@ -250,7 +250,7 @@ function get_bookmarks( $args = '' ) {
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
$orderparams = array();
|
$orderparams = array();
|
||||||
$keys = array( 'link_id', 'link_name', 'link_url', 'link_visible', 'link_rating', 'link_owner', 'link_updated', 'link_notes' );
|
$keys = array( 'link_id', 'link_name', 'link_url', 'link_visible', 'link_rating', 'link_owner', 'link_updated', 'link_notes', 'link_description' );
|
||||||
foreach ( explode( ',', $orderby ) as $ordparam ) {
|
foreach ( explode( ',', $orderby ) as $ordparam ) {
|
||||||
$ordparam = trim( $ordparam );
|
$ordparam = trim( $ordparam );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue