Changeset 4171
- Timestamp:
- 09/07/2006 05:37:26 PM (19 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
wp-content/themes/default/searchform.php (modified) (1 diff)
-
wp-content/themes/default/sidebar.php (modified) (1 diff)
-
wp-includes/general-template.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/default/searchform.php
r3134 r4171 1 1 <form method="get" id="searchform" action="<?php bloginfo('home'); ?>/"> 2 <div><input type="text" value="<?php echo wp_specialchars($s, 1); ?>" name="s" id="s" />2 <div><input type="text" value="<?php the_search_query(); ?>" name="s" id="s" /> 3 3 <input type="submit" id="searchsubmit" value="Search" /> 4 4 </div> -
trunk/wp-content/themes/default/sidebar.php
r4016 r4171 31 31 <?php /* If this is a monthly archive */ } elseif (is_search()) { ?> 32 32 <p>You have searched the <a href="<?php echo bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives 33 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>33 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> 34 34 35 35 <?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> -
trunk/wp-includes/general-template.php
r4168 r4171 802 802 } 803 803 804 function the_search_query() { 805 global $s; 806 echo wp_specialchars( stripslashes($s), 1 ); 807 } 808 804 809 ?>
Note: See TracChangeset
for help on using the changeset viewer.