Function to prep 's' for display on admin pages that don't run WP_Query(). Props Viper007Bond. see #7552

git-svn-id: https://develop.svn.wordpress.org/trunk@9074 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-10-03 03:06:43 +00:00
parent 3664763817
commit fb452b28e4
7 changed files with 21 additions and 7 deletions

View File

@@ -176,7 +176,7 @@ unset($status_links);
<form class="search-form" action="<?php echo $pagenow ?>" method="get">
<p class="search-box">
<label class="hidden" for="post-search-input"><?php _e( 'Search Comments' ); ?>:</label>
<input type="text" class="search-input" id="post-search-input" name="s" value="<?php echo $search; ?>" />
<input type="text" class="search-input" id="post-search-input" name="s" value="<?php _admin_search_query(); ?>" />
<input type="submit" value="<?php _e( 'Search Comments' ); ?>" class="button" />
</p>
</form>