After [34577], alter wp_xmlrpc_server::mw_newMediaObject() to check upload space in multisite.

See #21292.


git-svn-id: https://develop.svn.wordpress.org/trunk@34603 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor
2015-09-26 19:48:57 +00:00
parent 7cd7d4622c
commit 591b743362
2 changed files with 10 additions and 1 deletions
@@ -5721,6 +5721,11 @@ class wp_xmlrpc_server extends IXR_Server {
return $this->error;
}
if ( is_multisite() && upload_is_user_over_quota( false ) ) {
$this->error = new IXR_Error( 401, __( 'Sorry, you have used your space allocation.' ) );
return $this->error;
}
/**
* Filter whether to preempt the XML-RPC media upload.
*