Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Combine CSS bug with path-absolute URLs?

$
0
0

Replies: 0

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 all articles
Browse latest Browse all 59525

Trending Articles