WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/10/2010 10:10:36 PM (9 years ago)
Author:
scribu
Message:

Allow string as first parameter to locate_template(). Props chrisbliss18 for initial patch. Fixes #15061

File:
1 edited

Legend:

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

    r15616 r15771  
    152152    do_action( 'get_search_form' );
    153153
    154     $search_form_template = locate_template(array('searchform.php'));
     154    $search_form_template = locate_template('searchform.php');
    155155    if ( '' != $search_form_template ) {
    156156        require($search_form_template);
Note: See TracChangeset for help on using the changeset viewer.