Changeset 34603
- Timestamp:
- 09/26/2015 07:48:57 PM (10 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-xmlrpc-server.php
r34580 r34603 5722 5722 } 5723 5723 5724 if ( is_multisite() && upload_is_user_over_quota( false ) ) { 5725 $this->error = new IXR_Error( 401, __( 'Sorry, you have used your space allocation.' ) ); 5726 return $this->error; 5727 } 5728 5724 5729 /** 5725 5730 * Filter whether to preempt the XML-RPC media upload. -
trunk/src/wp-includes/ms-functions.php
r34455 r34603 2373 2373 */ 2374 2374 function get_upload_space_available() { 2375 $space_allowed = get_space_allowed() * 1024 * 1024; 2375 $allowed = get_space_allowed(); 2376 if ( $allowed < 0 ) { 2377 $allowed = 0; 2378 } 2379 $space_allowed = $allowed * 1024 * 1024; 2376 2380 if ( get_site_option( 'upload_space_check_disabled' ) ) 2377 2381 return $space_allowed;
Note: See TracChangeset
for help on using the changeset viewer.