Combine CSS bug with path-absolute URLs?
-
If I have a CSS file with something like the following:
.header { background:url(/wp-content/uploads/2019/11/bg.jpg) }
When it gets combined, it will turn into something like the following:
.header { background:url(https://example.org/wp-content/themes/mytheme//wp-content/uploads/2019/11/bg.jpg)) }
I had a look at the code and it looks like the function
get_style_content_with_replacements
in Combinator.php doesn’t treat path-absolute-URL strings correctly. I think these should be treated the same way as you treat absolute URL strings (ie. left alone).
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Combine CSS bug with path-absolute URLs?’ is closed to new replies.