WordPress.org

Make WordPress Core

Changeset 26924


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

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

Location:
trunk/src/wp-admin
Files:
2 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 ] ) ) {
  • trunk/src/wp-admin/user-edit.php

    r26907 r26924  
    261261 */
    262262?>
    263 <td><?php do_action( 'admin_color_scheme_picker' ); ?></td>
     263<td><?php do_action( 'admin_color_scheme_picker', $user_id ); ?></td>
    264264</tr>
    265265<?php
Note: See TracChangeset for help on using the changeset viewer.