WordPress.org

Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#3693 closed defect (bug) (fixed)

Uninstaniated variable $header sent to filter 'wp_create_file_in_uploads'

Reported by: spikeyslam Owned by:
Milestone: 2.1.1 Priority: low
Severity: normal Version: 2.1
Component: Administration Keywords:
Focuses: Cc:

Description

On line 226 of custom-header.php, variable $header has not been instantiated and is sent to the filter 'wp_create_file_in_uploads'.

Fix: use $file as the parameter.

Attachments (1)

custom-header-patch.txt (621 bytes) - added by spikeyslam 11 years ago.
patch file

Download all attachments as: .zip

Change History (5)

@spikeyslam
11 years ago

patch file

#1 @foolswisdom
11 years ago

  • Milestone changed from 2.3 to 2.1.1
  • Version set to 2.1

#2 @markjaquith
11 years ago

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

(In [4817]) Pass correct var to wp_create_file_in_uploads hook. props spikeyslam. fixes #3693

#3 @markjaquith
11 years ago

(In [4818]) Oops, two locations where this filter is called. fixes #3693

#4 @markjaquith
11 years ago

(In [4819]) Pass correct var to wp_create_file_in_uploads hook. props spikeyslam. fixes #3693

Note: See TracTickets for help on using tickets.