WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/08/2013 07:05:01 AM (6 years ago)
Author:
nacin
Message:

Nonces are already per-user. see #22862.

File:
1 edited

Legend:

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

    r26776 r26793  
    22502250    global $_wp_admin_css_colors;
    22512251
    2252     $user_id = get_current_user_id();
    2253 
    2254     check_ajax_referer( 'save-color-scheme_' . $user_id, 'nonce' );
     2252    check_ajax_referer( 'save-color-scheme', 'nonce' );
    22552253
    22562254    $color_scheme = sanitize_key( $_POST['color_scheme'] );
     
    22602258    }
    22612259
    2262     update_user_meta( $user_id, 'admin_color', $color_scheme );
     2260    update_user_meta( get_current_user_id(), 'admin_color', $color_scheme );
    22632261    wp_send_json_success();
    22642262}
Note: See TracChangeset for help on using the changeset viewer.