Changeset 6310 for trunk/wp-includes/query.php
- Timestamp:
- 11/03/2007 07:00:33 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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 }
Note: See TracChangeset
for help on using the changeset viewer.