Changeset 21256
- Timestamp:
- 07/10/2012 01:33:44 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/media.php
r21240 r21256 1327 1327 ?></div> 1328 1328 <?php 1329 // Check quota for this blog if multisite1330 1329 if ( is_multisite() && !is_upload_space_available() ) { 1331 echo '<p>' . sprintf( __( 'Sorry, you have filled your storage quota (%s MB).' ), get_space_allowed() ) . '</p>';1330 do_action( 'upload_ui_over_quota' ); 1332 1331 return; 1333 1332 } … … 2066 2065 add_action('post-plupload-upload-ui', 'media_upload_flash_bypass'); 2067 2066 2067 function multisite_over_quota_message() { 2068 echo '<p>' . sprintf( __( 'Sorry, you have used all of your storage quota of %s MB.' ), get_space_allowed() ) . '</p>'; 2069 } 2070 2068 2071 /** 2069 2072 * {@internal Missing Short Description}} -
trunk/wp-includes/ms-default-filters.php
r20461 r21256 46 46 add_filter( 'upload_mimes', 'check_upload_mimes' ); 47 47 add_filter( 'upload_size_limit', 'upload_size_limit_filter' ); 48 add_action( 'upload_ui_over_quota', 'multisite_over_quota_message' ); 48 49 49 50 // Mail
Note: See TracChangeset
for help on using the changeset viewer.