Make WordPress Core


Ignore:
Timestamp:
08/01/2012 01:52:06 PM (12 years ago)
Author:
westi
Message:

Multisite: Rework the upload space usage tracking code so as to be fully pluggable.

  • Moves some admin only functions into wp-admin/includes/ms.php from wp-includes/ms-functions.php
  • Reworked the variable naming to be more in line with the Coding Standards
  • Introduced a new get_space_used() function instead of calculating it in multiple places.

Fixes #21181 props dllh and jkudish for inital work on this.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/dashboard.php

    r21364 r21387  
    10981098
    10991099    $quota = get_space_allowed();
    1100     $used = get_dirsize( BLOGUPLOADDIR ) / 1024 / 1024;
     1100    $used = get_space_used();
    11011101
    11021102    if ( $used > $quota )
Note: See TracChangeset for help on using the changeset viewer.