Make WordPress Core


Ignore:
Timestamp:
10/03/2008 03:06:43 AM (15 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r9058 r9074  
    29792979}
    29802980
     2981/**
     2982 * Display the search query.
     2983 *
     2984 * A simple wrapper to display the "s" parameter in a GET URI. This function
     2985 * should only be used when {@link the_search_query()} cannot.
     2986 *
     2987 * @uses attribute_escape
     2988 * @since 2.7.0
     2989 *
     2990 */
     2991function _admin_search_query() {
     2992    echo ( isset($_GET['s']) ) ? attribute_escape( stripslashes( $_GET['s'] ) ) : '';
     2993}
     2994
    29812995?>
Note: See TracChangeset for help on using the changeset viewer.