Ticket #41226: 41226.patch
File 41226.patch, 662 bytes (added by , 7 years ago) |
---|
-
class-wp-query.php
1828 1828 $q['comments_per_page'] = get_option( 'comments_per_page' ); 1829 1829 } 1830 1830 1831 if ( $this->is_home && ( empty( $this->query ) || $q['preview'] == 'true' ) && ( 'page' == get_option( 'show_on_front' ) ) && get_option( 'page_on_front' ) ) {1832 $this->is_page = true;1833 $this->is_home = false;1834 $q['page_id'] = get_option( 'page_on_front' );1835 }1836 1837 1831 if ( isset( $q['page'] ) ) { 1838 1832 $q['page'] = trim( $q['page'], '/' ); 1839 1833 $q['page'] = absint( $q['page'] );