Ticket #21179: 21179.diff
File 21179.diff, 888 bytes (added by , 12 years ago) |
---|
-
wp-admin/includes/media.php
1328 1328 <?php 1329 1329 // Check quota for this blog if multisite 1330 1330 if ( is_multisite() && !is_upload_space_available() ) { 1331 echo '<p>' . sprintf( __( 'Sorry, you have filled your storage quota (%s MB).' ), get_space_allowed() ) . '</p>';1331 do_action( 'upload-ui-over-quota' ); 1332 1332 return; 1333 1333 } 1334 1334 … … 2065 2065 } 2066 2066 add_action('post-plupload-upload-ui', 'media_upload_flash_bypass'); 2067 2067 2068 function multisite_over_quota_message() { 2069 echo '<p>' . sprintf( __( 'Sorry, you have used all of your storage quota of %s MB.' ), get_space_allowed() ) . '</p>'; 2070 } 2071 add_action( 'upload-ui-over-quota', 'multisite_over_quota_message' ); 2072 2068 2073 /** 2069 2074 * {@internal Missing Short Description}} 2070 2075 *