Ticket #24314: 24314.diff
File 24314.diff, 765 bytes (added by , 12 years ago) |
---|
-
wp-admin/includes/dashboard.php
1114 1114 wp_widget_rss_form( $widget_options[$widget_id], $form_inputs ); 1115 1115 } 1116 1116 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 */ 1118 1126 function wp_dashboard_quota() { 1119 1127 if ( !is_multisite() || !current_user_can('upload_files') || get_site_option( 'upload_space_check_disabled' ) ) 1120 1128 return true;