Changeset 26793
- Timestamp:
- 12/08/2013 07:05:01 AM (11 years ago)
- Location:
- trunk/src/wp-admin/includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ajax-actions.php
r26776 r26793 2250 2250 global $_wp_admin_css_colors; 2251 2251 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' ); 2255 2253 2256 2254 $color_scheme = sanitize_key( $_POST['color_scheme'] ); … … 2260 2258 } 2261 2259 2262 update_user_meta( $user_id, 'admin_color', $color_scheme );2260 update_user_meta( get_current_user_id(), 'admin_color', $color_scheme ); 2263 2261 wp_send_json_success(); 2264 2262 } -
trunk/src/wp-admin/includes/misc.php
r26776 r26793 563 563 */ 564 564 function admin_color_scheme_picker() { 565 global $_wp_admin_css_colors , $user_id;565 global $_wp_admin_css_colors; 566 566 567 567 ksort( $_wp_admin_css_colors ); … … 572 572 } 573 573 574 $current_color = get_user_option( 'admin_color' , $user_id);574 $current_color = get_user_option( 'admin_color' ); 575 575 576 576 if ( empty( $current_color ) || ! isset( $_wp_admin_css_colors[ $current_color ] ) ) { … … 582 582 <legend class="screen-reader-text"><span><?php _e( 'Admin Color Scheme' ); ?></span></legend> 583 583 <?php 584 wp_nonce_field( 'save-color-scheme _' . $user_id, 'color-nonce', false );584 wp_nonce_field( 'save-color-scheme', 'color-nonce', false ); 585 585 foreach ( $_wp_admin_css_colors as $color => $color_info ) : 586 586
Note: See TracChangeset
for help on using the changeset viewer.