WordPress.org

Make WordPress Core

Ticket #14066: capabilities.has_cap.diff

File capabilities.has_cap.diff, 346 bytes (added by bigdawggi, 5 years ago)
Line 
1@@ -728,7 +728,7 @@
2                $caps = call_user_func_array( 'map_meta_cap', $args );
3 
4                // Multisite super admin has all caps by definition, Unless specifically denied.
5-               if ( is_multisite() && is_super_admin() ) {
6+               if ( is_multisite() && is_super_admin($this->ID) ) {
7                        if ( in_array('do_not_allow', $caps) )
8                                return false;
9                        return true;