mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -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'] ) ) : '';
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user