Make WordPress Core

Opened 20 years ago

Closed 20 years ago

#1711 closed defect (bug) (fixed)

SQL Error with Lists Cats

Reported by: mikelittle's profile MikeLittle 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)

template-functions-category.php.diff (578 bytes) - added by MikeLittle 20 years ago.
Patch against the trunk (rev 2924) to fix the problem.
template-functions-category.php-1.5.2.diff (578 bytes) - added by MikeLittle 20 years ago.
Patch against verison 1.5.2 (revision 2924) to fix the problem.

Download all attachments as: .zip

Change History (4)

@MikeLittle
20 years ago

Patch against the trunk (rev 2924) to fix the problem.

@MikeLittle
20 years ago

Patch against verison 1.5.2 (revision 2924) to fix the problem.

#1 @MikeLittle
20 years ago

  • Keywords has-patch added
  • Version changed from 1.5.2 to 1.6

#2 @ryan
20 years ago

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

(In [2931]) SQL error fix from MikeLittle. fixes #1711

Note: See TracTickets for help on using tickets.