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:
parent
247c08f604
commit
bbe76ccd6e
|
@ -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>
|
|
@ -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') .'" />
|
||||
|
|
Loading…
Reference in New Issue