Changeset 45082
- Timestamp:
- 04/01/2019 12:23:54 PM (7 years ago)
- Location:
- trunk/src
- Files:
-
- 4 edited
-
wp-admin/includes/media.php (modified) (1 diff)
-
wp-admin/includes/ms-deprecated.php (modified) (6 diffs)
-
wp-admin/includes/ms.php (modified) (2 diffs)
-
wp-includes/class-wp-xmlrpc-server.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/media.php
r44785 r45082 2899 2899 */ 2900 2900 function multisite_over_quota_message() { 2901 echo '<p>' . sprintf( __( 'Sorry, you have used all of your storage quota of %s MB.' ), get_space_allowed() ) . '</p>'; 2901 echo '<p>' . sprintf( 2902 /* translators: %s: allowed space allocation */ 2903 __( 'Sorry, you have used your space allocation of %s. Please delete some files to upload more files.' ), 2904 size_format( get_space_allowed() * MB_IN_BYTES ) 2905 ) . '</p>'; 2902 2906 } 2903 2907 -
trunk/src/wp-admin/includes/ms-deprecated.php
r40922 r45082 17 17 */ 18 18 function wpmu_menu() { 19 _deprecated_function( __FUNCTION__, '3.0.0' );19 _deprecated_function( __FUNCTION__, '3.0.0' ); 20 20 // Deprecated. See #11763. 21 21 } … … 28 28 */ 29 29 function wpmu_checkAvailableSpace() { 30 _deprecated_function( __FUNCTION__, '3.0.0', 'is_upload_space_available()' );30 _deprecated_function( __FUNCTION__, '3.0.0', 'is_upload_space_available()' ); 31 31 32 if ( !is_upload_space_available() ) 33 wp_die( __('Sorry, you must delete files before you can upload any more.') ); 32 if ( ! is_upload_space_available() ) { 33 wp_die( sprintf( 34 /* translators: %s: allowed space allocation */ 35 __( 'Sorry, you have used your space allocation of %s. Please delete some files to upload more files.' ), 36 size_format( get_space_allowed() * MB_IN_BYTES ) 37 ) ); 38 } 34 39 } 35 40 … … 40 45 */ 41 46 function mu_options( $options ) { 42 _deprecated_function( __FUNCTION__, '3.0.0' );47 _deprecated_function( __FUNCTION__, '3.0.0' ); 43 48 return $options; 44 49 } … … 51 56 */ 52 57 function activate_sitewide_plugin() { 53 _deprecated_function( __FUNCTION__, '3.0.0', 'activate_plugin()' );58 _deprecated_function( __FUNCTION__, '3.0.0', 'activate_plugin()' ); 54 59 return false; 55 60 } … … 62 67 */ 63 68 function deactivate_sitewide_plugin( $plugin = false ) { 64 _deprecated_function( __FUNCTION__, '3.0.0', 'deactivate_plugin()' );69 _deprecated_function( __FUNCTION__, '3.0.0', 'deactivate_plugin()' ); 65 70 } 66 71 … … 72 77 */ 73 78 function is_wpmu_sitewide_plugin( $file ) { 74 _deprecated_function( __FUNCTION__, '3.0.0', 'is_network_only_plugin()' );79 _deprecated_function( __FUNCTION__, '3.0.0', 'is_network_only_plugin()' ); 75 80 return is_network_only_plugin( $file ); 76 81 } -
trunk/src/wp-admin/includes/ms.php
r44905 r45082 227 227 if ( ( $space_allowed - $space_used ) < 0 ) { 228 228 if ( $echo ) { 229 _e( 'Sorry, you have used your space allocation. Please delete some files to upload more files.' ); 229 printf( 230 /* translators: %s: allowed space allocation */ 231 __( 'Sorry, you have used your space allocation of %s. Please delete some files to upload more files.' ), 232 size_format( $space_allowed * MB_IN_BYTES ) 233 ); 230 234 } 231 235 return true; … … 1003 1007 1004 1008 submit_button( __( 'Confirm Deletion' ), 'primary' ); 1005 ?>1009 ?> 1006 1010 </form> 1007 1011 <?php -
trunk/src/wp-includes/class-wp-xmlrpc-server.php
r44566 r45082 6235 6235 6236 6236 if ( is_multisite() && upload_is_user_over_quota( false ) ) { 6237 $this->error = new IXR_Error( 401, __( 'Sorry, you have used your space allocation.' ) ); 6237 $this->error = new IXR_Error( 6238 401, 6239 sprintf( 6240 /* translators: %s: allowed space allocation */ 6241 __( 'Sorry, you have used your space allocation of %s. Please delete some files to upload more files.' ), 6242 size_format( get_space_allowed() * MB_IN_BYTES ) 6243 ) 6244 ); 6238 6245 return $this->error; 6239 6246 }
Note: See TracChangeset
for help on using the changeset viewer.