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/misc.php

    r26776 r26793  
    563563 */
    564564function admin_color_scheme_picker() {
    565     global $_wp_admin_css_colors, $user_id;
     565    global $_wp_admin_css_colors;
    566566
    567567    ksort( $_wp_admin_css_colors );
     
    572572    }
    573573
    574     $current_color = get_user_option( 'admin_color', $user_id );
     574    $current_color = get_user_option( 'admin_color' );
    575575
    576576    if ( empty( $current_color ) || ! isset( $_wp_admin_css_colors[ $current_color ] ) ) {
     
    582582        <legend class="screen-reader-text"><span><?php _e( 'Admin Color Scheme' ); ?></span></legend>
    583583        <?php
    584         wp_nonce_field( 'save-color-scheme_' . $user_id, 'color-nonce', false );
     584        wp_nonce_field( 'save-color-scheme', 'color-nonce', false );
    585585        foreach ( $_wp_admin_css_colors as $color => $color_info ) :
    586586
Note: See TracChangeset for help on using the changeset viewer.