Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter titk

    (@titk)

    I found the problem after several hours of search, so I share it, maybe it could help someone.

    I found this on my theme functions.php:

    function billio_remove_script_version( $src ){

    $parts = @explode( ‘?’, $src );
    if (substr_count($parts[0],’googleapis.com’)>0 {
    return $src;
    } else {
    return $parts[0];
    }
    }

    This means they were removing all parameters from scripts…

    I changed it to the following:

    function billio_remove_script_version( $src ){

    $parts = @explode( ‘?’, $src );
    if (substr_count($parts[0],’googleapis.com’)>0 || substr_count($parts[0],’maps.google.com’)>0) {
    return $src;
    } else {
    return $parts[0];
    }
    }

    Everything seems to work now.

    Thread Starter titk

    (@titk)

    Some precisions, after searching a little more.

    The include for google maps script on the page looks like this:

    <script type=’text/javascript’ src=’https://maps.google.com/maps/api/js’></script&gt;

    API key should be there but doesn’t get included for some reason.

    I checked the database, both keys are there, in wp_options table, wpsl_settings option.

Viewing 2 replies - 1 through 2 (of 2 total)