summaryrefslogtreecommitdiffstats
path: root/wp-content/themes
diff options
context:
space:
mode:
Diffstat (limited to 'wp-content/themes')
-rw-r--r--wp-content/themes/default/archive.php3
-rw-r--r--wp-content/themes/default/searchform.php2
-rw-r--r--wp-content/themes/default/sidebar.php2
3 files changed, 2 insertions, 5 deletions
diff --git a/wp-content/themes/default/archive.php b/wp-content/themes/default/archive.php
index c648abd..c6acaab 100644
--- a/wp-content/themes/default/archive.php
+++ b/wp-content/themes/default/archive.php
@@ -17,9 +17,6 @@
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<h2 class="pagetitle">Archive for <?php the_time('Y'); ?></h2>
- <?php /* If this is a search */ } elseif (is_search()) { ?>
- <h2 class="pagetitle">Search Results</h2>
-
<?php /* If this is an author archive */ } elseif (is_author()) { ?>
<h2 class="pagetitle">Author Archive</h2>
diff --git a/wp-content/themes/default/searchform.php b/wp-content/themes/default/searchform.php
index c7c73f1..c6f7140 100644
--- a/wp-content/themes/default/searchform.php
+++ b/wp-content/themes/default/searchform.php
@@ -1,5 +1,5 @@
<form method="get" id="searchform" action="<?php bloginfo('home'); ?>/">
-<div><input type="text" value="<?php echo wp_specialchars($s, 1); ?>" name="s" id="s" />
+<div><input type="text" value="<?php the_search_query(); ?>" name="s" id="s" />
<input type="submit" id="searchsubmit" value="Search" />
</div>
</form>
diff --git a/wp-content/themes/default/sidebar.php b/wp-content/themes/default/sidebar.php
index 3dc24b1..b20b5de 100644
--- a/wp-content/themes/default/sidebar.php
+++ b/wp-content/themes/default/sidebar.php
@@ -30,7 +30,7 @@
<?php /* If this is a monthly archive */ } elseif (is_search()) { ?>
<p>You have searched the <a href="<?php echo bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives
- for <strong>'<?php echo wp_specialchars($s); ?>'</strong>. If you are unable to find anything in these search results, you can try one of these links.</p>
+ for <strong>'<?php the_search_query(); ?>'</strong>. If you are unable to find anything in these search results, you can try one of these links.</p>
<?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<p>You are currently browsing the <a href="<?php echo bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives.</p>