Opened 20 years ago
Closed 20 years ago
#1711 closed defect (bug) (fixed)
SQL Error with Lists Cats
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | major | Version: | 1.6 |
Component: | Template | Keywords: | has-patch |
Focuses: | Cc: |
Description
If you add optiondates and exclude parameters to wp_list cats, an SQL error results.
The exclude parameters causes the $exclusions string to be added to the query. This references cat_ID from $wpdb->categories. The optiondates parameter uses a query which doesn't involve $wpdb->categories, but adds the $exclusions string to the query.
Attachments (2)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Patch against the trunk (rev 2924) to fix the problem.