Quantcast
Channel: WordPress.org Forums » [Autoptimize] Support
Viewing all articles
Browse latest Browse all 14094

futtta on "[Plugin: Autoptimize] @font face"

$
0
0

Hmm, been looking at this and you might have discovered a small bug (indeed depending on browser).

If you're not scared of code, could you open up wp-content/plugins/autoptimize/classes/autoptimizeStyles.php and on line 449 replace

$replace[$hash] = 'url('.$newurl.')';

with

$replace[$hash] = 'url(\''.$newurl.'\')';

This should solve your @font-face and should hopefully not cause regressions.

Looking forward to your feedback,
frank


Viewing all articles
Browse latest Browse all 14094

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>