Make WordPress Core

Opened 16 years ago

Closed 16 years ago

#13182 closed defect (bug) (fixed)

submitting options-media.php in is_multisite() == true mode loses values

Reported by: tott's profile tott Owned by: tott's profile tott
Milestone: 3.0 Priority: high
Severity: blocker Version: 3.0
Component: Media Keywords: media options, media
Focuses: multisite Cc:

Description

When you save the media options on a multisite installation
the values upload_path, uploads_use_yearmonth_folders and upload_url_path and maybe more are set to empty values causing file uploads done after this to be messed up.

Attachments (1)

13182.diff (1.8 KB) - added by ryan 16 years ago.

Download all attachments as: .zip

Change History (5)

#1 @lloydbudd
16 years ago

  • Milestone changed from Unassigned to 3.0
  • Owner set to tott
  • Priority changed from normal to high
  • Severity changed from normal to critical
  • Status changed from new to assigned
  • Version set to 3.0

Can't release without this debugged (understood) if not fixed. Updated P/sev.

#2 @ryan
16 years ago

  • Severity changed from critical to blocker

@ryan
16 years ago

#3 @ryan
16 years ago

Looks like this was already partially implemented. $uploads_options holds these values and only adds them to the registered options if !is_mutltisite(). Unfortunately, they were still hard-coded into the registered options array. Removing them from there should fix this. Patch untested.

#4 @ryan
16 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [14316]) Don't stomp upload options when saving media options for MS sites. fixes #13182

Note: See TracTickets for help on using tickets.