Skip to content

Commit

Permalink
Search form uses class instead of id
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaydsouza committed May 3, 2015
1 parent bc7f92a commit 54bdc1f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
9 changes: 5 additions & 4 deletions better-search.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* Plugin Name: Better Search
* Plugin URI: http://ajaydsouza.com/wordpress/plugins/better-search/
* Description: Replace the default WordPress search with a contextual search. Search results are sorted by relevancy ensuring a better visitor search experience.
* Version: 1.4-beta20150503
* Version: 1.4-beta20150504
* Author: Ajay D'Souza
* Author URI: http://ajaydsouza.com/
* Text Domain: better-search
Expand Down Expand Up @@ -1240,10 +1240,11 @@ function get_bsearch_form( $search_query ) {
if ( $search_query == '' ) {
$search_query = get_bsearch_query();
}
$form = '<div style="text-align:center"><form method="get" id="bsearchform" action="' . home_url() . '/" >

$form = '<div style="text-align:center"><form method="get" class="bsearchform" action="' . home_url() . '/" >
<label class="hidden" for="s">' . __( 'Search for:', BSEARCH_LOCAL_NAME ) . '</label>
<input type="text" value="' . $search_query . '" name="s" id="s" />
<input type="submit" id="searchsubmit" value="' . __( 'Search Again', BSEARCH_LOCAL_NAME ) . '" />
<input type="text" value="' . $search_query . '" name="s" class="s" />
<input type="submit" class="searchsubmit" value="' . __( 'Search Again', BSEARCH_LOCAL_NAME ) . '" />
</form></div>';

/**
Expand Down
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ Check the Changelog for details
* Modified: Reorganised admin interface
* Modified: Seamless mode is now the default mode
* Modified: Better Search uses transients to catch results when not using seamless mode
* Modified: Search form uses `class` instead of `id`
* Fixed: Seamless mode would overwrite all queries, even those outside the loop
* Fixed: WordPress widget settings

Expand Down

0 comments on commit 54bdc1f

Please sign in to comment.