[wp-trac] [WordPress Trac] #46540: Admin bar CSS shouldn't be added in the customizer

WordPress Trac noreply at wordpress.org
Thu Mar 21 00:10:43 UTC 2019


#46540: Admin bar CSS shouldn't be added in the customizer
-------------------------------------+-----------------------------
 Reporter:  nabil_kadimi             |       Owner:  (none)
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  5.2
Component:  Customize                |     Version:  4.5
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:  administration
-------------------------------------+-----------------------------

Comment (by nabil_kadimi):

 > Since everything is in an external stylesheet, the only thing needed is
 to update the URL of the stylesheet, no?

 I appreciate your help @westonruter, actually, the CSS is kinda dynamic
 (Bootstrap with **customizable variables**), before knowing the CSS, I
 need to know the variables, then create the CSS that uses it them and give
 the file a name that contains these variables md5 (for unicity).

 I tried passing the variables using code similar to yours with AJAX in it,
 unhappily, the AJAX response was always -1 and I was not able to get the
 new CSS link using that method, from there I moved to `selective_refresh`
 where I had that error with the the admin bar CSS, then finally I reverted
 to `refresh`.

 Thanks again for your help, I don't want to waste your time on this,
 `'postMessage' => 'refresh'` works for me.

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


More information about the wp-trac mailing list