[wp-trac] [WordPress Trac] #48881: Fix inline SVG error with wp_admin_css_color

WordPress Trac noreply at wordpress.org
Sat Dec 28 01:13:31 UTC 2019


#48881: Fix inline SVG error with wp_admin_css_color
-------------------------------------------------+-------------------------
 Reporter:  KZeni                                |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Administration                       |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-testing reporter-    |     Focuses:  css,
  feedback                                       |  administration
-------------------------------------------------+-------------------------

Comment (by KZeni):

 https://github.com/helen/admin-color-schemer creates a copy of the `wp-
 admin/css/colors/_admin.scss` file to generate its custom color schemes
 (it then uses its copy of this file at `wp-content/uploads/admin-color-
 schemer/_admin.scss`.) This is where I encountered this issue (and
 confirmed just now that it is still an issue.) It shows the checked
 checkboxes as broken images instead of displaying the SVG as expected.

 Again, just swapping out `@return '%23' + str-slice( '#{ $color }', 2, -1
 );` to instead be `@return '%23' + str-slice( %23{ $color }, 2, -1 );`
 fixes the issue and doesn't appear to have any side-effects.

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


More information about the wp-trac mailing list