Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#28932 closed defect (bug) (fixed)

$file_array variable is never assigned as an array in media_sideload_image()

Reported by: danielbachhuber Owned by: SergeyBiryukov
Milestone: 4.0 Priority: lowest
Severity: minor Version:
Component: General Keywords: has-patch
Focuses: Cc:


In media_sideload_image(), the $file_array variable isn't created as an array. It should be, to ensure it never inherits values from a similarly named variable in later refactoring.

Attachments (1)

28932.1.diff (538 bytes) - added by danielbachhuber 7 years ago.

Download all attachments as: .zip

Change History (2)

#1 @SergeyBiryukov
7 years ago

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

In 29215:

Declare the variable before using it.

props danielbachhuber.
fixes #28932.

Note: See TracTickets for help on using tickets.