[wp-trac] [WordPress Trac] #30202: In multisite, the "storage space used" is incorrectly calculated for the main blog/site.

WordPress Trac noreply at wordpress.org
Mon Jul 13 00:06:41 UTC 2015


#30202: In multisite, the "storage space used" is incorrectly calculated for the
main blog/site.
--------------------------------+-------------------------
 Reporter:  rebekahickey        |       Owner:  jeremyfelt
     Type:  defect (bug)        |      Status:  closed
 Priority:  normal              |   Milestone:  4.3
Component:  Networks and Sites  |     Version:  4.0
 Severity:  normal              |  Resolution:  fixed
 Keywords:  has-patch           |     Focuses:  multisite
--------------------------------+-------------------------
Changes (by jeremyfelt):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"33184"]:
 {{{
 #!CommitTicketReference repository="" revision="33184"
 Exclude individual site directories when calculating space used for the
 main site.

 * Add an `$exclude` parameter to `recurse_dirsize()`.
 * Use this parameter in `get_dirsize()` to exclude `/sites` when on the
 main site.
 * Add tests for main site and switched site.

 Props @earnjam, @jeremyfelt.
 Fixes #30202.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30202#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list