WordPress.org

Make WordPress Core

Ticket #21179: 21179.diff

File 21179.diff, 888 bytes (added by westi, 6 years ago)

Simpler patch

  • wp-admin/includes/media.php

     
    13281328<?php
    13291329// Check quota for this blog if multisite
    13301330if ( is_multisite() && !is_upload_space_available() ) {
    1331         echo '<p>' . sprintf( __( 'Sorry, you have filled your storage quota (%s MB).' ), get_space_allowed() ) . '</p>';
     1331        do_action( 'upload-ui-over-quota' );
    13321332        return;
    13331333}
    13341334
     
    20652065}
    20662066add_action('post-plupload-upload-ui', 'media_upload_flash_bypass');
    20672067
     2068function multisite_over_quota_message() {
     2069        echo '<p>' . sprintf( __( 'Sorry, you have used all of your storage quota of %s MB.' ), get_space_allowed() ) . '</p>';
     2070}
     2071add_action( 'upload-ui-over-quota', 'multisite_over_quota_message' );
     2072
    20682073/**
    20692074 * {@internal Missing Short Description}}
    20702075 *