WordPress.org

Make WordPress Core

Changeset 11430


Ignore:
Timestamp:
05/22/2009 04:04:49 PM (9 years ago)
Author:
ryan
Message:

Allow multiple search form templates. Props mtdewvirus. fixes #9908

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/general-template.php

    r11395 r11430  
    116116    do_action( 'get_search_form' );
    117117
    118     if ( '' != locate_template(array('searchform.php'), true) )
     118    $search_form_template = locate_template(array('searchform.php'));
     119    if ( '' != $search_form_template ) {
     120        require($search_form_template);
    119121        return;
     122    }
    120123
    121124    $form = '<form role="search" method="get" id="searchform" action="' . get_option('home') . '/" >
Note: See TracChangeset for help on using the changeset viewer.