WordPress.org

Make WordPress Core

Ticket #24314: 24314.diff

File 24314.diff, 765 bytes (added by DrewAPicture, 2 years ago)
  • wp-admin/includes/dashboard.php

     
    11141114        wp_widget_rss_form( $widget_options[$widget_id], $form_inputs ); 
    11151115} 
    11161116 
    1117 // Display File upload quota on dashboard 
     1117/** 
     1118 * Display file upload quota on dashboard. 
     1119 * 
     1120 * Runs on the activity_box_end hook in wp_dashboard_right_now(). 
     1121 * 
     1122 * @since 3.0.0 
     1123 * 
     1124 * @return bool True if not multisite, user can't upload files, or the space check option is disabled. 
     1125*/ 
    11181126function wp_dashboard_quota() { 
    11191127        if ( !is_multisite() || !current_user_can('upload_files') || get_site_option( 'upload_space_check_disabled' ) ) 
    11201128                return true;