“liveblog”; known 2.2 issues
-
I’ll document confirmed bugs here the next couple of days.
First one;
-> problem: images referenced in CSS not translated to correct path, leading to 404’s
-> fix; open wp-content/autoptimize/classes/autoptimizeStyles.php and on line 6 replace
const ASSETS_REGEX = '/url\s*\(\s*(?!["\']?data:)(?![\'|\"]?[\#|\%|])([^)]+)\s*\)([^;},]*)/i';
with
const ASSETS_REGEX = '/url\s*\(\s*(?!["\']?data:)(?![\'|\"]?[\#|\%|])([^)]+)\s*\)([^;},]*)/iU';
(so adding capital U to make the regex ungreedy)
- The topic ‘“liveblog”; known 2.2 issues’ is closed to new replies.