Make WordPress Core

Changeset 8185


Ignore:
Timestamp:
06/24/2008 05:49:24 PM (16 years ago)
Author:
ryan
Message:

Disambiguate column. Props voxpelli. fixes #7073

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/query.php

    r7941 r8185  
    929929                $q['pagename'] = sanitize_title(basename($page_paths));
    930930                $q['name'] = $q['pagename'];
    931                 $where .= " AND (ID = '$reqpage')";
     931                $where .= " AND ($wpdb->posts.ID = '$reqpage')";
    932932                $reqpage_obj = get_page($reqpage);
    933933                if ( 'attachment' == $reqpage_obj->post_type ) {
Note: See TracChangeset for help on using the changeset viewer.