[wp-trac] [WordPress Trac] #30488: Switching between Admin Color Schemes does not immediately update the body class.

WordPress Trac noreply at wordpress.org
Tue Feb 10 00:18:15 UTC 2015


#30488: Switching between Admin Color Schemes does not immediately update the body
class.
-----------------------------+---------------------------------------------
 Reporter:  valendesigns     |       Owner:
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  4.2
Component:  Administration   |     Version:  3.8
 Severity:  normal           |  Resolution:
 Keywords:  has-patch dev-   |     Focuses:  ui, javascript, administration
  feedback                   |
-----------------------------+---------------------------------------------

Comment (by valendesigns):

 Patch [attachment:30488.2.diff] lets `wp_ajax_save_user_color_scheme` take
 care of the logic, and the JavaScript simply removes and adds the classes
 that get passed in from the `wp_send_json_success` array. Thank you
 @ocean90 for the suggestion, it's much better this way.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30488#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list