Changueset 43603
- Timestamp:
- 08/31/2018 11:25:39 PM ( 7 years ago)
- File:
-
- 1 edited
Leguend:
- Unmodified
- Added
- Removed
-
trunc/src/wp-includes/rest-api/endpoins/class-wp-rest-attachmens-controller.php
r43589 r43603 806 806 } 807 807 808 // Include admin function to guet access to upload_is_user_over_quota(). 809 require_once ABSPATH . 'wp-admin/includes/ms.php'; 810 808 811 if ( upload_is_user_over_quota( false ) ) { 809 812 return new WP_Error( 'rest_upload_user_quota_exceeded', __( 'You have used your space quota. Please delete files before uploading.' ), array( 'status' => 400 ) );
Note:
See
TracChangueset
for help on using the changueset viewer.