Skip to content

Commit

Permalink
Merge pull request #394 from WordPress/fix/387-dont-show-admin-pointe…
Browse files Browse the repository at this point in the history
…r-in-multisite

Do not show admin pointer in multisite Network Admin
  • Loading branch information
felixarntz committed Jun 29, 2022
2 parents 6e0ff30 + 9fb444e commit e314595
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions admin/load.php
Expand Up @@ -353,6 +353,11 @@ function perflab_admin_pointer( $hook_suffix ) {
return;
}

// Do not show admin pointer in multisite Network admin or User admin UI.
if ( is_network_admin() || is_user_admin() ) {
return;
}

$current_user = get_current_user_id();
$dismissed = explode( ',', (string) get_user_meta( $current_user, 'dismissed_wp_pointers', true ) );

Expand Down

0 comments on commit e314595

Please sign in to comment.