Changeset 46494 for branches/4.8/src/wp-includes/class-wp-query.php
- Timestamp:
- 10/14/2019 06:44:54 PM (7 years ago)
- Location:
- branches/4.8
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-includes/class-wp-query.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/4.8
- Property svn:mergeinfo changed
/trunk merged: 46474-46478,46483,46485
- Property svn:mergeinfo changed
-
branches/4.8/src/wp-includes/class-wp-query.php
r40103 r46494 583 583 , 'attachment_id' 584 584 , 'name' 585 , 'static'586 585 , 'pagename' 587 586 , 'page_id' … … 814 813 // post is being queried. 815 814 $this->is_single = true; 816 } elseif ( '' != $qv[' static'] || '' != $qv['pagename'] || !empty($qv['page_id']) ) {815 } elseif ( '' != $qv['pagename'] || !empty($qv['page_id']) ) { 817 816 $this->is_page = true; 818 817 $this->is_single = false; … … 3059 3058 $this->found_posts = $wpdb->get_var( apply_filters_ref_array( 'found_posts_query', array( 'SELECT FOUND_ROWS()', &$this ) ) ); 3060 3059 } else { 3061 $this->found_posts = count( $this->posts ); 3060 if ( is_array( $this->posts ) ) { 3061 $this->found_posts = count( $this->posts ); 3062 } else { 3063 if ( null === $this->posts ) { 3064 $this->found_posts = 0; 3065 } else { 3066 $this->found_posts = 1; 3067 } 3068 } 3062 3069 } 3063 3070
Note: See TracChangeset
for help on using the changeset viewer.