Make WordPress Core


Ignore:
Timestamp:
06/05/2012 06:51:33 PM (14 years ago)
Author:
nacin
Message:

Remove user/site suggestions (autocompletion) from search inputs, as the UX isn't proper.

  • Removes all instances of site-search, so away it goes. Sidesteps a number of bugs with site-search.
  • Renames user-search to user-suggest, which means it better describes the current behavior (autocompletion) while allowing for future behavior (instant search).
  • Ties user suggestions to a single .wp-suggest-user class.

with help from markjaquith, helenyhou, wonderboymusic.
fixes #20835.

File:
1 edited

Legend:

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

    r20713 r21003  
    173173
    174174if ( ! wp_is_large_network( 'users' ) && apply_filters( 'show_network_site_users_add_existing_form', true ) )
    175     wp_enqueue_script( 'user-search' );
     175    wp_enqueue_script( 'user-suggest' );
    176176
    177177require('../admin-header.php'); ?>
     
    268268        <tr>
    269269            <th scope="row"><?php _e( 'Username' ); ?></th>
    270             <td><input type="text" class="regular-text" name="newuser" id="newuser" /></td>
     270            <td><input type="text" class="regular-text wp-suggest-user" name="newuser" id="newuser" /></td>
    271271        </tr>
    272272        <tr>
Note: See TracChangeset for help on using the changeset viewer.