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

git-svn-id: http://svn.automattic.com/wordpress/trunk@9074 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2008-10-03 03:06:43 +00:00
parent 4acbfa76ec
commit b50f25ae11
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>