WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#6808 closed enhancement (fixed)

Add exclude_category argument to wp_list_bookmarks()

Reported by: ionfish Owned by:
Milestone: 2.6 Priority: normal
Severity: minor Version: 2.5
Component: Template Keywords: has-patch
Focuses: Cc:

Description

wp_list_bookmarks() does not allow the exclusion of particular categories, despite the fact that get_terms() (which it uses to pull in categories) does. Attached is a patch that enables the exclusion of categories from the list generated by wp_list_bookmarks().

Attachments (2)

exclude_category.diff (750 bytes) - added by ionfish 6 years ago.
exclude_category-2.diff (1.2 KB) - added by ionfish 6 years ago.
Add exclude_category to defaults

Download all attachments as: .zip

Change History (5)

ionfish6 years ago

comment:1 ryan6 years ago

exclude_category needs to be in defaults.

ionfish6 years ago

Add exclude_category to defaults

comment:2 ionfish6 years ago

New patch reflects changes in wp_list_bookmarks() and adds exclude_category to defaults.

comment:3 ryan6 years ago

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

(In [8183]) Add exclude_category argument to wp_list_bookmarks(). Props ionfish. fixes #6808

Note: See TracTickets for help on using tickets.