Fix search for custom taxonomies. Props gortsleigh. fixes #9971

git-svn-id: https://develop.svn.wordpress.org/trunk@11481 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-05-29 02:54:44 +00:00
parent 6ae5d00203
commit 793db461d5
1 changed files with 1 additions and 0 deletions

View File

@ -157,6 +157,7 @@ if ( isset($_GET['s']) && $_GET['s'] )
endif; ?> endif; ?>
<form class="search-form" action="" method="get"> <form class="search-form" action="" method="get">
<input type="hidden" name="taxonomy" value="<?php echo esc_attr($taxonomy); ?>" />
<p class="search-box"> <p class="search-box">
<label class="screen-reader-text" for="tag-search-input"><?php _e( 'Search Tags' ); ?>:</label> <label class="screen-reader-text" for="tag-search-input"><?php _e( 'Search Tags' ); ?>:</label>
<input type="text" id="tag-search-input" name="s" value="<?php _admin_search_query(); ?>" /> <input type="text" id="tag-search-input" name="s" value="<?php _admin_search_query(); ?>" />