Viewing 2 replies - 1 through 2 (of 2 total)
  • Works great

    Thanks a bunch

    You rock.

    I know the plugin’s author has moved on to other things, but Mike if you’re reading this–it would be awesome if you could add this solution to the FAQ. I’ve seen postings about this problem scattered around the web.

    I had this problem with both Google Maps and embedded Vimeo videos, so I modified the code as follows:

    add_filter('http_external_url', 'wccn_http_external_url');
    function wccn_http_external_url ($url) {
      if (
            ( preg_match( '/www\.google\.com\/maps\//i', $url ) ) ||
            ( preg_match( '/player\.vimeo\.com\/video\//i', $url ) )
         )
      {
        $url = str_replace('http://', 'https://', $url);
      }
    
      return $url;
    }
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Issue with google maps (functions.php fix included)’ is closed to new replies.