WordPress.org

Make WordPress Core

#22050 closed defect (bug) (fixed)

Undefined variable: setting_errors in get_settings_errors()

Reported by: bradyvercher Owned by: 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 19 months ago.

Download all attachments as: .zip

Change History (4)

bradyvercher19 months ago

comment:1 bradyvercher19 months ago

  • Keywords has-patch added

comment:2 obenland19 months ago

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

Introduced in [21315].

comment:3 ryan19 months 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.