Opened 18 years ago
Closed 18 years ago
#7507 closed defect (bug) (fixed)
'wp_list_bookmarks()' and 'category_name' with non-existent category
| Reported by: | therks | Owned by: | |
|---|---|---|---|
| Priority: | lowest | Milestone: | 2.8 |
| Component: | Template | Version: | 2.6 |
| Severity: | trivial | Keywords: | has-patch tested |
| Cc: | Focuses: |
Description
When using 'wp_list_bookmarks()', if you specify a non-existent category with the 'category_name' parameter it shows all bookmarks from all categories. Should just return nothing, shouldn't it?
Attachments (2)
Change History (13)
#3
@
18 years ago
- Component General → Template
- Keywords needs-patch added; wp_list_bookmarks category_name removed
#4
@
18 years ago
confirmed in 2.8. the issue is in get_bookmarks().
if category name is not empty and it returns no terms, it should:
- cache an empty result
- return
#6
@
18 years ago
- Keywords has-patch needs-testing added; needs-patch removed
- Milestone Future Release → 2.8
#7
@
18 years ago
patch works, but it would be better located here:
http://core.trac.wordpress.org/browser/trunk/wp-includes/bookmark.php#L188
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Bah, I forgot to mention that
categorizealso has to be set to 0.Example:
wp_list_bookmarks('categorize=0&category_name=IDontExist');