Opened 12 years ago
Closed 11 years ago
#24575 closed defect (bug) (fixed)
link-template.php does not use canonical capitalized ID column name.
Reported by: | hypertextranch | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 3.6 | Priority: | normal |
Severity: | trivial | Version: | 3.5 |
Component: | Template | Keywords: | has-patch |
Focuses: | Cc: |
Description
The primary key field of $wpdb->posts
is ID
(all caps) however one query in link-template.php references it as p.id
this is not an issue for MySQL as field names are case insensitive however it does not conform to how it's used elsewhere and poses problems for plugins like PostgreSQL for WordPress.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
Introduced in [21919].