#22228 closed enhancement (fixed)
Remove one-time variable from add_settings_error
Reported by: | niallkennedy | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 4.0 | 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)
Change History (6)
Note: See
TracTickets for help on using
tickets.
append array directly to $wp_settings_errors