From e2238d665f51ad4e37b866c9e0499d9571af0c2f Mon Sep 17 00:00:00 2001 From: donncha Date: Fri, 4 Jul 2008 14:37:48 +0000 Subject: WP Merge with revision 8255 git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1350 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-includes/widgets.php | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) (limited to 'wp-includes/widgets.php') diff --git a/wp-includes/widgets.php b/wp-includes/widgets.php index fd0bc3d..1dd8bd3 100644 --- a/wp-includes/widgets.php +++ b/wp-includes/widgets.php @@ -461,17 +461,22 @@ function wp_widget_links($args) { function wp_widget_search($args) { extract($args); -?> - -
-
+ $searchform_template = get_template_directory() . '/searchform.php'; + + echo $before_widget; + + // Use current theme search form if it exists + if ( file_exists($searchform_template) ) { + include_once($searchform_template); + } else { ?> +
-
+ -
- - - +