diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php
index 3962bc9..1ffd71b 100644
|
a
|
b
|
function get_template_part( $slug, $name = null ) { |
| 151 | 151 | function get_search_form($echo = true) { |
| 152 | 152 | do_action( 'get_search_form' ); |
| 153 | 153 | |
| 154 | | $search_form_template = locate_template(array('searchform.php')); |
| | 154 | $search_form_template = locate_template('searchform.php'); |
| 155 | 155 | if ( '' != $search_form_template ) { |
| 156 | 156 | require($search_form_template); |
| 157 | 157 | return; |
diff --git a/wp-includes/theme.php b/wp-includes/theme.php
index 3d67806..ef86c80 100644
|
a
|
b
|
function get_comments_popup_template() { |
| 1075 | 1075 | * |
| 1076 | 1076 | * @since 2.7.0 |
| 1077 | 1077 | * |
| 1078 | | * @param array $template_names Array of template files to search for in priority order. |
| | 1078 | * @param string|array $template_names Template file to search for, or an array thereof in priority order. |
| 1079 | 1079 | * @param bool $load If true the template file will be loaded if it is found. |
| 1080 | 1080 | * @param bool $require_once Whether to require_once or require. Default true. Has no effect if $load is false. |
| 1081 | 1081 | * @return string The template filename if one is located. |
| 1082 | 1082 | */ |
| 1083 | 1083 | function locate_template($template_names, $load = false, $require_once = true ) { |
| 1084 | | if ( !is_array($template_names) ) |
| | 1084 | if ( is_string($template_names) ) |
| | 1085 | $template_names = array($template_names); |
| | 1086 | else if ( !is_array($template_names) ) |
| 1085 | 1087 | return ''; |
| 1086 | 1088 | |
| 1087 | 1089 | $located = ''; |