WordPress.org

Make WordPress Core

Ticket #26021: 26021.patch

File 26021.patch, 541 bytes (added by sagarprajapati, 3 years ago)
  • wp-includes/admin-bar.php

     
    4646
    4747        $wp_admin_bar->initialize();
    4848        $wp_admin_bar->add_menus();
     49       
     50        $user_color = get_user_option( 'admin_color' );
    4951
     52        if ( isset( $user_color ) ) {
     53                $wp_admin_color_schemes = get_option( 'wp_admin_color_schemes' );
     54                wp_enqueue_style( $user_color, $wp_admin_color_schemes[$user_color]->url );
     55        }
     56
    5057        return true;
    5158}
    5259