Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#22050 closed defect (bug) (fixed)

Undefined variable: setting_errors in get_settings_errors()

Reported by: bradyvercher's profile bradyvercher Owned by: ryan's profile ryan
Milestone: 3.5 Priority: normal
Severity: normal Version: 3.5
Component: Administration Keywords: has-patch commit
Focuses: Cc:

Description

When get_settings_errors() is called for a setting that that doesn't result in any errors when it's saved, a debug notice is generated due to the $setting_errors variable not being initialized before it's returned.

Attachments (1)

22050.patch (517 bytes) - added by bradyvercher 12 years ago.

Download all attachments as: .zip

Change History (4)

@bradyvercher
12 years ago

#1 @bradyvercher
12 years ago

  • Keywords has-patch added

#2 @obenland
12 years ago

  • Keywords commit added
  • Milestone changed from Awaiting Review to 3.5

Introduced in [21315].

#3 @ryan
12 years ago

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

In [22091]:

Initialize to avoid notice. Props bradyvercher. fixes #22050

Note: See TracTickets for help on using tickets.