Changeset 4112 for trunk/wp-includes/query.php
- Timestamp:
- 08/24/2006 10:33:16 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r4096 r4112 552 552 $q['what_to_show'] = 'posts'; 553 553 } 554 $q['posts_per_page'] = (int) $q['posts_per_page']; 555 if ( $q['posts_per_page'] < -1 ) 556 $q['posts_per_page'] = abs($q['posts_per_page']); 557 else if ( $q['posts_per_page'] == 0 ) 558 $q['posts_per_page'] = 1; 554 559 555 560 if ( $this->is_home && (empty($this->query) || $q['preview'] == 'true') && ( 'page' == get_option('show_on_front') ) && get_option('page_on_front') ) {
Note: See TracChangeset
for help on using the changeset viewer.