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. git-svn-id: http://core.svn.wordpress.org/trunk@21003 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -339,12 +339,6 @@ default:
|
||||
exit;
|
||||
}
|
||||
|
||||
if ( is_multisite() && current_user_can( 'promote_users' ) && ! wp_is_large_network( 'users' )
|
||||
&& ( is_super_admin() || apply_filters( 'autocomplete_users_for_site_admins', false ) )
|
||||
) {
|
||||
wp_enqueue_script( 'user-search' );
|
||||
}
|
||||
|
||||
include('./admin-header.php');
|
||||
|
||||
$messages = array();
|
||||
|
||||
Reference in New Issue
Block a user