Make WordPress Core


Ignore:
Timestamp:
01/08/2014 09:48:32 PM (11 years ago)
Author:
helen
Message:

Pass the $user_id to the admin_color_scheme_picker hook for context. props nacin. see #26607 for trunk.

File:
1 edited

Legend:

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

    r26868 r26924  
    562562 * @since 3.0.0
    563563 */
    564 function admin_color_scheme_picker() {
     564function admin_color_scheme_picker( $user_id ) {
    565565    global $_wp_admin_css_colors;
    566566
     
    572572    }
    573573
    574     $current_color = get_user_option( 'admin_color' );
     574    $current_color = get_user_option( 'admin_color', $user_id );
    575575
    576576    if ( empty( $current_color ) || ! isset( $_wp_admin_css_colors[ $current_color ] ) ) {
Note: See TracChangeset for help on using the changeset viewer.