[wp-trac] Re: [WordPress Trac] #1435: Pages should be searched

WordPress Trac wp-trac at lists.automattic.com
Tue Feb 24 02:51:33 GMT 2009

#1435: Pages should be searched
 Reporter:  markjaquith                                      |        Owner:  anonymous
     Type:  enhancement                                      |       Status:  reopened 
 Priority:  high                                             |    Milestone:  2.7.2    
Component:  General                                          |      Version:  2.3      
 Severity:  major                                            |   Resolution:           
 Keywords:  trac-irrelivent search pages static needs-patch  |  
Changes (by jidm):

 * cc: jidm (added)
  * status:  closed => reopened
  * resolution:  fixed =>
  * milestone:  2.5 => 2.7.2



 I seriously believe that there should be an option to choose between
 search on 'any' or 'post'. This could be changed from the admin panel.

 In some projects i don't need/want to searh on pages, so i have to
 manually change 'any' for 'post on:

         if ( !isset($q['post_type']) ) {
                         if ( $this->is_search )
                                 $q['post_type'] = 'any';
                                 $q['post_type'] = 'post';

 I think this can't be hard to implement (an option in the backend, a row
 in wp_options [maybe wp_blogs in case of wpmu] and a modification on the
 code above to ask for that option).

 Please consider implementing this. It has been stuck like this since 2.4
 and still is on 2.7.1


Ticket URL: <http://core.trac.wordpress.org/ticket/1435#comment:22>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list