[wp-trac] [WordPress Trac] #22228: Remove one-time variable from add_settings_error

WordPress Trac noreply at wordpress.org
Fri Oct 19 17:50:08 UTC 2012


#22228: Remove one-time variable from add_settings_error
-----------------------------+----------------------------
 Reporter:  niallkennedy     |       Type:  enhancement
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  Administration
  Version:                   |   Severity:  trivial
 Keywords:                   |
-----------------------------+----------------------------
 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 ... );

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22228>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list