mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Clean up cap checks for autocompletes for sites and users in a network. see #19810.
git-svn-id: https://develop.svn.wordpress.org/trunk@20332 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -416,22 +416,11 @@ function wp_network_dashboard_right_now() {
|
||||
if ( current_user_can('create_users') )
|
||||
$actions['create-user'] = '<a href="' . network_admin_url('user-new.php') . '">' . __( 'Create a New User' ) . '</a>';
|
||||
|
||||
if ( is_multisite()
|
||||
&& current_user_can( 'promote_users' )
|
||||
&& ! wp_is_large_network( 'users' )
|
||||
&& is_super_admin()
|
||||
&& is_network_admin()
|
||||
) {
|
||||
if ( ! wp_is_large_network( 'users' ) )
|
||||
wp_enqueue_script( 'user-search' );
|
||||
}
|
||||
if ( is_multisite()
|
||||
&& current_user_can( 'manage_sites' )
|
||||
&& ! wp_is_large_network( 'sites' )
|
||||
&& is_super_admin()
|
||||
&& is_network_admin()
|
||||
) {
|
||||
|
||||
if ( ! wp_is_large_network( 'sites' ) )
|
||||
wp_enqueue_script( 'site-search' );
|
||||
}
|
||||
|
||||
$c_users = get_user_count();
|
||||
$c_blogs = get_blog_count();
|
||||
|
||||
Reference in New Issue
Block a user