mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-30 23:30:05 +00:00
Autocomplete site names in Network Admin. More user completion areas. props Japh, DrewAPicture. see #19810.
git-svn-id: https://develop.svn.wordpress.org/trunk@20279 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -245,6 +245,14 @@ get_current_screen()->set_help_sidebar(
|
||||
'<p>' . __('<a href="http://wordpress.org/support/forum/multisite/" target="_blank">Support Forums</a>') . '</p>'
|
||||
);
|
||||
|
||||
if ( is_multisite()
|
||||
&& current_user_can( 'promote_users' )
|
||||
&& ! wp_is_large_network( 'users' )
|
||||
&& is_super_admin()
|
||||
) {
|
||||
wp_enqueue_script( 'user-search' );
|
||||
}
|
||||
|
||||
require_once( '../admin-header.php' );
|
||||
|
||||
if ( isset( $_REQUEST['updated'] ) && $_REQUEST['updated'] == 'true' && ! empty( $_REQUEST['action'] ) ) {
|
||||
@@ -288,7 +296,7 @@ if ( isset( $_REQUEST['updated'] ) && $_REQUEST['updated'] == 'true' && ! empty(
|
||||
<?php $wp_list_table->views(); ?>
|
||||
|
||||
<form action="" method="get" class="search-form">
|
||||
<?php $wp_list_table->search_box( __( 'Search Users' ), 'user' ); ?>
|
||||
<?php $wp_list_table->search_box( __( 'Search Users' ), 'all-user' ); ?>
|
||||
</form>
|
||||
|
||||
<form id="form-user-list" action='users.php?action=allusers' method='post'>
|
||||
|
||||
Reference in New Issue
Block a user