WordPress.org

Make WordPress Core

Opened 18 months ago

Last modified 4 months ago

#22228 new enhancement

Remove one-time variable from add_settings_error

Reported by: niallkennedy Owned by:
Milestone: Awaiting Review Priority: normal
Severity: trivial Version: 3.0
Component: Administration Keywords: has-patch
Focuses: Cc:

Description

Append an array to $wp_settings_errors without assigning it to a variable in the previous line.

Before:
$var = array( 'type' => $type ... );
$wp_settings_errors[] = $var;

After:
$wp_settings_errors[] = array( 'type' => $type ... );

Attachments (2)

template.diff (653 bytes) - added by niallkennedy 18 months ago.
append array directly to $wp_settings_errors
22228.diff (700 bytes) - added by obenland 4 months ago.
Refreshed patch

Download all attachments as: .zip

Change History (3)

niallkennedy18 months ago

append array directly to $wp_settings_errors

obenland4 months ago

Refreshed patch

comment:1 obenland4 months ago

  • Keywords has-patch added
  • Version set to 3.0
Note: See TracTickets for help on using tickets.