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

@@ -2978,4 +2978,18 @@ function _draft_or_post_title($post_id = 0)
return $title;
}
?>
/**
* Display the search query.
*
* A simple wrapper to display the "s" parameter in a GET URI. This function
* should only be used when {@link the_search_query()} cannot.
*
* @uses attribute_escape
* @since 2.7.0
*
*/
function _admin_search_query() {
echo ( isset($_GET['s']) ) ? attribute_escape( stripslashes( $_GET['s'] ) ) : '';
}
?>