WordPress.org

Make WordPress Core

Opened 8 years ago

Closed 8 years ago

Last modified 5 years ago

#18119 closed defect (bug) (fixed)

get_space_allowed ignores option set to 0

Reported by: jakub.tyrcha Owned by: markjaquith
Milestone: 3.3 Priority: normal
Severity: normal Version:
Component: Multisite Keywords: has-patch commit
Focuses: Cc:
PR Number:

Description

if 'blog_upload_space' is set to 0, get_space_allowed() uses get_site_option instead of accepting a "0" value.

See unit tests:
http://gsoc.svn.wordpress.org/2011/jakub.tyrcha/test_wpms.php

Attachments (1)

18119.patch (523 bytes) - added by jakub.tyrcha 8 years ago.

Download all attachments as: .zip

Change History (6)

@jakub.tyrcha
8 years ago

#1 @hakre
8 years ago

Nice catch.

#2 @SergeyBiryukov
8 years ago

  • Milestone changed from Awaiting Review to 3.3

#3 @nacin
8 years ago

  • Keywords commit added

Looks good to me.

#4 @markjaquith
8 years ago

  • Owner set to markjaquith
  • Resolution set to fixed
  • Status changed from new to closed

In [19314]:

Only fall back to get_site_option() if blog_upload_space value is === false. Zero should not fall back. fixes #18119. props jakub.tyrcha

This ticket was mentioned in Slack in #core by jeremyfelt. View the logs.


5 years ago

Note: See TracTickets for help on using tickets.