Changeset 4144 for trunk/wp-includes/query.php
- Timestamp:
- 08/30/2006 09:46:31 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r4133 r4144 546 546 $post_type = $q['post_type']; 547 547 if ( !isset($q['posts_per_page']) || $q['posts_per_page'] == 0 ) 548 $q['posts_per_page'] = get_ settings('posts_per_page');548 $q['posts_per_page'] = get_option('posts_per_page'); 549 549 if ( !isset($q['what_to_show']) ) 550 $q['what_to_show'] = get_ settings('what_to_show');550 $q['what_to_show'] = get_option('what_to_show'); 551 551 if ( isset($q['showposts']) && $q['showposts'] ) { 552 552 $q['showposts'] = (int) $q['showposts']; … … 563 563 } 564 564 if ( $this->is_feed ) { 565 $q['posts_per_page'] = get_ settings('posts_per_rss');565 $q['posts_per_page'] = get_option('posts_per_rss'); 566 566 $q['what_to_show'] = 'posts'; 567 567 } … … 584 584 } 585 585 586 $add_hours = intval(get_ settings('gmt_offset'));587 $add_minutes = intval(60 * (get_ settings('gmt_offset') - $add_hours));586 $add_hours = intval(get_option('gmt_offset')); 587 $add_minutes = intval(60 * (get_option('gmt_offset') - $add_hours)); 588 588 $wp_posts_post_date_field = "post_date"; // "DATE_ADD(post_date, INTERVAL '$add_hours:$add_minutes' HOUR_MINUTE)"; 589 589
Note: See TracChangeset
for help on using the changeset viewer.