Opened 21 years ago
Closed 21 years ago
#1711 closed defect (bug) (fixed)
SQL Error with Lists Cats
| Reported by: | MikeLittle | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Template | Version: | 1.6 |
| Severity: | major | Keywords: | has-patch |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Patch against the trunk (rev 2924) to fix the problem.