Debug Bar not visible to multisite subsite admins, why? [PATCH]
-
So I noticed ! is_super_admin() in $this->init(). Is there a specific reason for this? Topic subject states my goal. Here’s something on a works-for-me level, perhaps you guys could comment what a sustainable solution would be?
# Make Debug Bar available for multisite subsite admins function is_super_admin() { return current_user_can( "remove_users" ); } function init() { if ( ! $this->is_super_admin() || ! is_admin_bar_showing() || $this->is_wp_login() ) ... function init_ajax() { if ( ! $this->is_super_admin() ) return;
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Debug Bar not visible to multisite subsite admins, why? [PATCH]’ is closed to new replies.