WordPress.org

Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#10050 closed defect (bug) (fixed)

unset variable case

Reported by: dd32 Owned by:
Milestone: 2.8 Priority: normal
Severity: normal Version: 2.8
Component: Media Keywords: has-patch tested
Focuses: Cc:

Description

In the media code to retrieve a icon for a media-type, there exists a rare case where $src can be unset (when $icon is false), attached patch initializes variable first.

Attachments (1)

10050.diff (491 bytes) - added by dd32 13 years ago.

Download all attachments as: .zip

Change History (2)

@dd32
13 years ago

#1 @ryan
13 years ago

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

(In [11529]) Initialize var. Props dd32. fixes #10050

Note: See TracTickets for help on using tickets.