WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/09/2010 10:20:07 AM (11 years ago)
Author:
scribu
Message:

Fix MS User search. See #14579

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/network/users.php

    r15528 r15603  
    6464    <a href="#form-add-user" class="button add-new-h2"><?php echo esc_html_x( 'Add New' , 'users'); ?></a>
    6565    <?php
    66     if ( isset( $_REQUEST['s'] ) && $_REQUEST['s'] )
    67     printf( '<span class="subtitle">' . __( 'Search results for &#8220;%s&#8221;' ) . '</span>', esc_html( $s ) );
     66    if ( !empty( $usersearch ) )
     67    printf( '<span class="subtitle">' . __( 'Search results for &#8220;%s&#8221;' ) . '</span>', esc_html( $usersearch ) );
    6868    ?>
    6969    </h2>
     
    7171    <form action="" method="get" class="search-form">
    7272        <p class="search-box">
    73         <input type="text" name="s" value="<?php echo esc_attr( $s ); ?>" class="search-input" id="user-search-input" />
     73        <input type="text" name="s" value="<?php echo esc_attr( $usersearch ); ?>" class="search-input" id="user-search-input" />
    7474        <input type="submit" id="post-query-submit" value="<?php esc_attr_e( 'Search Users' ) ?>" class="button" />
    7575        </p>
Note: See TracChangeset for help on using the changeset viewer.