Opened 9 years ago
Closed 9 years ago
#29512 closed defect (bug) (fixed)
$site_mimes is not defined
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.1 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Networks and Sites | Keywords: | has-patch |
Focuses: | multisite | Cc: |
Description
Error in the multisite tests:
Undefined variable: site_mimes
Naive patch attached. Might want to look into why $site_exts
is empty though.
Attachments (3)
Change History (9)
#1
@
9 years ago
- Keywords has-patch added
New patch uses jpg jpeg png gif
as the default value, which matches the default for the option in Upload Settings (for the network).
#2
@
9 years ago
- Owner set to SergeyBiryukov
- Resolution set to fixed
- Status changed from new to closed
In 29718:
#3
@
9 years ago
- Keywords fixed-major added
- Resolution fixed deleted
- Status changed from closed to reopened
Reopening for 4.0.1 consideration.
#4
@
9 years ago
29512.3.diff applies cleanly to the 4.0 branch.
This is clear to merge to 4.0 as there are no side effects. However this is not a regression from 3.9 so it could also stay as a trunk fix only.
I am able to reproduce the error in 4.0 unit tests, likely because of an option being stomped in a previous test.
#6
@
9 years ago
- Keywords fixed-major removed
- Milestone changed from 4.0.1 to 4.1
- Resolution set to fixed
- Status changed from reopened to closed
We *could* change the patch to only modify ms-functions.php
, which will be changed in #29692, as the other part of the patch is really just a code style change.
That said, the worst this will do is cause a notice, and I haven't found a plausible real world scenario outside of the tests in 4.0.
So I'm going to close it as fixed in 4.1. :)
Define $site_mimes before using it