WordPress.org

Make WordPress Core

Ticket #20177: query-missing-page-type.diff

File query-missing-page-type.diff, 498 bytes (added by wonderboymusic, 6 years ago)
  • wp-includes/query.php

     
    27572757                        $this->posts[$i] = sanitize_post( $post, 'raw' );
    27582758                }
    27592759
     2760                if ( empty( $post_type ) && $this->is_page )
     2761                        $post_type = $post_type_object->name;
     2762
    27602763                if ( $q['cache_results'] )
    27612764                        update_post_caches($this->posts, $post_type, $q['update_post_term_cache'], $q['update_post_meta_cache']);
    27622765