[wp-trac] [WordPress Trac] #29763: wp_list_bookmarks fails to order by description due to missing param in get_bookmarks() in bookmarks.php

WordPress Trac noreply at wordpress.org
Fri Sep 26 21:28:29 UTC 2014


#29763: wp_list_bookmarks fails to order by description due to missing param in
get_bookmarks() in bookmarks.php
--------------------------+--------------------
 Reporter:  Moto-Zulli    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.1
Component:  General       |     Version:  3.1.4
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+--------------------
Changes (by SergeyBiryukov):

 * version:  3.9.2 => 3.1.4
 * milestone:  Awaiting Review => 4.1


Old description:

> line 253 in wp-includes/bookmarks.php includes the allowable orderby
> params:
>
> $keys = array( 'link_id', 'link_name', 'link_url', 'link_visible',
> 'link_rating', 'link_owner', 'link_updated', 'link_notes');
>
> but  'link_description' is missing. Adding back to bookmark.php restores
> the functionality but requires altering core files.

New description:

 line 253 in wp-includes/bookmarks.php includes the allowable orderby
 params:
 {{{
 $keys = array( 'link_id', 'link_name', 'link_url', 'link_visible',
 'link_rating', 'link_owner', 'link_updated', 'link_notes');
 }}}
 but  'link_description' is missing. Adding back to bookmark.php restores
 the functionality but requires altering core files.

--

Comment:

 Appears to be a regression in [18345]. The Codex still says that
 `link_description` is an acceptable parameter for `orderby`.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29763#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list