WordPress.org

Make WordPress Core

Ticket #15122: 15122.diff

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

Patch against trunk r15811

  • wp-includes/capabilities.php

     
    10891089function current_user_can_for_blog( $blog_id, $capability ) {
    10901090        $current_user = wp_get_current_user();
    10911091
    1092         if ( is_multisite() && is_super_admin() )
    1093                 return true;
    1094 
    10951092        if ( empty( $current_user ) )
    10961093                return false;
    10971094