Autocomplete site names in Network Admin. More user completion areas. props Japh, DrewAPicture. see #19810.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20279 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -171,7 +171,7 @@ $title = sprintf( __('Edit Site: %s'), $site_url_no_http );
|
||||
$parent_file = 'sites.php';
|
||||
$submenu_file = 'sites.php';
|
||||
|
||||
if ( current_user_can( 'promote_users' ) && apply_filters( 'show_network_site_users_add_existing_form', true ) && !wp_is_large_network( 'users' ) )
|
||||
if ( ! wp_is_large_network( 'users' ) && apply_filters( 'show_network_site_users_add_existing_form', true ) )
|
||||
wp_enqueue_script( 'user-search' );
|
||||
|
||||
require('../admin-header.php'); ?>
|
||||
|
||||
@@ -282,6 +282,9 @@ if ( isset( $_REQUEST['updated'] ) && $_REQUEST['updated'] == 'true' && ! empty(
|
||||
|
||||
$wp_list_table->prepare_items();
|
||||
|
||||
if ( ! wp_is_large_network( 'sites' ) )
|
||||
wp_enqueue_script( 'site-search' );
|
||||
|
||||
require_once( '../admin-header.php' );
|
||||
?>
|
||||
|
||||
|
||||
@@ -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