error in fvm_get_protocol
-
Hello!
I’m using “CDN URL” option. The combined css and js files generates ok. The trouble is that new files refers to original (not cdn) site. If I’m watching page source, I’m expecting something like “//cdn.my.site/somethere/header.css”. But instead I have only “//my.site/somethere/header.css” – CDN URL option is not working.
The trouble is in the function fvm_get_protocol($url) in the functions.php. The variable $wp_domain is not defined than you calling this function.
I’ve added $wp_domain = trim(str_ireplace(array(‘https://’, ‘https://’), ”, trim(site_url(), ‘/’))); – it’s works, but not a better way to fix a problem.
Please, fix this error, please.
You have made a great plugin! Thank you so much!
- The topic ‘error in fvm_get_protocol’ is closed to new replies.