Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#29763 closed defect (bug) (fixed)

wp_list_bookmarks fails to order by description due to missing param in get_bookmarks() in bookmarks.php

Reported by: moto-zulli's profile Moto-Zulli Owned by: wonderboymusic's profile wonderboymusic
Milestone: 4.1 Priority: normal
Severity: normal Version: 3.1.4
Component: General Keywords:
Focuses: Cc:

Description (last modified by SergeyBiryukov)

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.

Change History (2)

#1 @SergeyBiryukov
10 years ago

  • Description modified (diff)
  • Milestone changed from Awaiting Review to 4.1
  • Version changed from 3.9.2 to 3.1.4

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

#2 @wonderboymusic
10 years ago

  • Owner set to wonderboymusic
  • Resolution set to fixed
  • Status changed from new to closed

In 29778:

Allow bookmarks to be ordered by link_description in get_bookmarks().

Fixes #29763.

Note: See TracTickets for help on using tickets.