Make WordPress Core

Changeset 17973


Ignore:
Timestamp:
05/19/2011 05:43:19 PM (13 years ago)
Author:
nacin
Message:

Only show multisite upload space when user has upload_files, rather than edit_posts. props johnbillion, fixes #17510.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/dashboard.php

    r17928 r17973  
    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
Note: See TracChangeset for help on using the changeset viewer.