Ticket #15122: 15122.diff

File 15122.diff, 448 bytes (added by jamescollins, 3 years ago)

Patch against trunk r15811

Line 
1Index: wp-includes/capabilities.php
2===================================================================
3--- wp-includes/capabilities.php        (revision 15811)
4+++ wp-includes/capabilities.php        (working copy)
5@@ -1089,9 +1089,6 @@
6 function current_user_can_for_blog( $blog_id, $capability ) {
7        $current_user = wp_get_current_user();
8 
9-       if ( is_multisite() && is_super_admin() )
10-               return true;
11-
12        if ( empty( $current_user ) )
13                return false;
14