Remove Twenty Ten's searchform.php and use the core get_search_form() markup. fixes #13053

git-svn-id: http://svn.automattic.com/wordpress/trunk@14331 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-05-02 18:10:42 +00:00
parent 247c08f604
commit bbe76ccd6e
2 changed files with 1 additions and 21 deletions

View File

@ -1,20 +0,0 @@
<?php
/**
* The Search Form
*
* Optional file that allows displaying a custom search form
* when the get_search_form() template tag is used.
*
* @package WordPress
* @subpackage Twenty Ten
* @since 3.0.0
*/
?>
<form id="searchform" name="searchform" method="get" action="<?php echo home_url(); ?>">
<div>
<label for="s"><?php _e( 'Search', 'twentyten' ); ?></label>
<input type="text" id="s" name="s" />
<input type="submit" id="searchsubmit" value="<?php esc_attr_e( 'Search', 'twentyten' ); ?>" />
</div>
</form>

View File

@ -157,7 +157,7 @@ function get_search_form($echo = true) {
return;
}
$form = '<form role="search" method="get" id="searchform" action="' . home_url() . '/" >
$form = '<form role="search" method="get" id="searchform" action="' . home_url( '/' ) . '" >
<div><label class="screen-reader-text" for="s">' . __('Search for:') . '</label>
<input type="text" value="' . get_search_query() . '" name="s" id="s" />
<input type="submit" id="searchsubmit" value="'. esc_attr__('Search') .'" />