Make WordPress Core

Ticket #9674: 9674-183.patch

File 9674-183.patch, 416 bytes (added by prettyboymp, 15 years ago)

allows installs without permastructure set to use ?p=post_id to display custom post_types

  • wp-includes/query.php

     
    15921592                        $q['suppress_filters'] = false;
    15931593
    15941594                if ( !isset($q['post_type']) ) {
    1595                         if ( $this->is_search )
     1595                        if ( $this->is_search || isset($q['p']))
    15961596                                $q['post_type'] = 'any';
    15971597                        else
    15981598                                $q['post_type'] = '';