WordPress.org

Make WordPress Core

Ticket #17510: 17510.patch

File 17510.patch, 592 bytes (added by johnbillion, 3 years ago)
  • wp-admin/includes/dashboard.php

     
    11201120 
    11211121// Display File upload quota on dashboard 
    11221122function wp_dashboard_quota() { 
    1123         if ( !is_multisite() || !current_user_can('edit_posts') || get_site_option( 'upload_space_check_disabled' ) ) 
     1123        if ( !is_multisite() || !current_user_can('upload_files') || get_site_option( 'upload_space_check_disabled' ) ) 
    11241124                return true; 
    11251125 
    11261126        $quota = get_space_allowed();