Make WordPress Core


Ignore:
Timestamp:
02/10/2015 02:22:49 AM (7 years ago)
Author:
SergeyBiryukov
Message:

Update body class when switching between admin color schemes.

props valendesigns.
fixes #30488.

File:
1 edited

Legend:

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

    r31345 r31400  
    26012601    }
    26022602
     2603    $previous_color_scheme = get_user_meta( get_current_user_id(), 'admin_color', true );
    26032604    update_user_meta( get_current_user_id(), 'admin_color', $color_scheme );
    2604     wp_send_json_success();
     2605
     2606    wp_send_json_success( array(
     2607        'previousScheme' => 'admin-color-' . $previous_color_scheme,
     2608        'currentScheme'  => 'admin-color-' . $color_scheme
     2609    ) );
    26052610}
    26062611
Note: See TracChangeset for help on using the changeset viewer.