I have an issue similar to many others in the web, but still with no solution so far.
To remove query strings i've used the following code:
function _remove_script_version( $src ){
$parts = explode( '?', $src );
return $parts[0];
}
add_filter( 'script_loader_src', '_remove_script_version', 15, 1 );
add_filter( 'style_loader_src', '_remove_script_version', 15, 1 );
What i'ld like, is to know if someone believe to know how to set up a code to exclude googple map api query string from being removed.
To fix the error below:
“The Google Maps API server rejected your request. The “sensor” parameter specified in the request must be set to either “true” or “false”.
Does anyone beleive to know how to fix this?