Skip to content

Commit

Permalink
Update admin_color to use Admin Color Scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
lupus2k committed Jan 27, 2024
1 parent 1d7507a commit 901d326
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ public function __construct() {
// request. Although `get_connected_user_data` tries to save the data for
// future uses on a transient, the data is not guaranteed to be cached.
update_user_option( $this->user_id, 'jetpack_wpcom_is_rtl', $this->is_rtl ? '1' : '0' );
update_user_option( $this->user_id, 'admin_color', get_user_meta( $this->user_id, 'admin_color', true ) );
if ( isset( $this->user_data['use_wp_admin_links'] ) ) {
update_user_option( $this->user_id, 'jetpack_admin_menu_link_destination', $this->user_data['use_wp_admin_links'] ? '1' : '0' );
}
Expand Down

0 comments on commit 901d326

Please sign in to comment.