#22228 closed enhancement (fixed)
Remove one-time variable from add_settings_error
| Reported by: | niallkennedy | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.0 |
| Component: | Administration | Version: | 3.0 |
| Severity: | trivial | Keywords: | has-patch |
| Cc: | Focuses: |
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)
This ticket was mentioned in Slack in #core-editor by zieladam. View the logs.
6 years ago
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
append array directly to $wp_settings_errors