Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#24575 closed defect (bug) (fixed)

link-template.php does not use canonical capitalized ID column name.

Reported by: hypertextranch Owned by: SergeyBiryukov
Priority: normal Milestone: 3.6
Component: Template Version: 3.5
Severity: trivial Keywords: has-patch
Cc: Focuses:

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)

24575.patch (834 bytes ) - added by hypertextranch 13 years ago.

Download all attachments as: .zip

Change History (3)

#1 @SergeyBiryukov
13 years ago

  • Component GeneralTemplate
  • Milestone Awaiting Review3.6
  • Version trunk3.5

Introduced in [21919].

#2 @SergeyBiryukov
13 years ago

  • Owner set to SergeyBiryukov
  • Resolutionfixed
  • Status newclosed

In 24506:

Use capitalized ID column name in get_adjacent_post(). props hypertextranch. fixes #24575.

Note: See TracTickets for help on using tickets.