Changeset 6310
- Timestamp:
- 11/03/07 19:00:33 (1 year ago)
- Files:
-
- trunk/wp-includes/query.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-includes/query.php
r6245 r6310 869 869 // If a post number is specified, load that post 870 870 if ( $q['p'] ) 871 $where = ' AND ID = '. $q['p'];871 $where = " AND {$wpdb->posts}.ID = " . $q['p']; 872 872 873 873 if ( $q['page_id'] ) { 874 874 if ( ('page' != get_option('show_on_front') ) || ( $q['page_id'] != get_option('page_for_posts') ) ) { 875 875 $q['p'] = $q['page_id']; 876 $where = ' AND ID = '. $q['page_id'];876 $where = " AND {$wpdb->posts}.ID = " . $q['page_id']; 877 877 } 878 878 }
