WordPress.org

Make WordPress Core

Changeset 28681


Ignore:
Timestamp:
06/05/2014 06:28:15 PM (8 years ago)
Author:
SergeyBiryukov
Message:

Remove one-time variable from add_settings_error().

props niallkennedy.
fixes #22228.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/template.php

    r28653 r28681  
    12991299    global $wp_settings_errors;
    13001300
    1301     $new_error = array(
     1301    $wp_settings_errors[] = array(
    13021302        'setting' => $setting,
    1303         'code' => $code,
     1303        'code'    => $code,
    13041304        'message' => $message,
    1305         'type' => $type
     1305        'type'    => $type
    13061306    );
    1307     $wp_settings_errors[] = $new_error;
    13081307}
    13091308
Note: See TracChangeset for help on using the changeset viewer.