WordPress.org

Make WordPress Core

Changeset 24506


Ignore:
Timestamp:
06/24/2013 01:11:43 PM (8 years ago)
Author:
SergeyBiryukov
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/link-template.php

    r24490 r24506  
    11761176    $sort  = apply_filters( "get_{$adjacent}_post_sort", "ORDER BY p.post_date $order LIMIT 1" );
    11771177
    1178     $query = "SELECT p.id FROM $wpdb->posts AS p $join $where $sort";
     1178    $query = "SELECT p.ID FROM $wpdb->posts AS p $join $where $sort";
    11791179    $query_key = 'adjacent_post_' . md5($query);
    11801180    $result = wp_cache_get($query_key, 'counts');
Note: See TracChangeset for help on using the changeset viewer.