Title: [Plugin: Google Map Shortcode] Plugin Broken in WP 3.3
Last modified: August 20, 2016

---

# [Plugin: Google Map Shortcode] Plugin Broken in WP 3.3

 *  [Estelle](https://wordpress.org/support/users/estelleihasz/)
 * (@estelleihasz)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-google-map-shortcode-plugin-broken-in-wp-33/)
 * Plugin Broken in WP 3.3 – maps not showing at all after upgrade to WP 3.3. Tried
   to roll back to earlier version of plugin and no luck their either. 🙁
 * [http://wordpress.org/extend/plugins/google-map-shortcode/](http://wordpress.org/extend/plugins/google-map-shortcode/)

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

 *  [Marcus Fridholm](https://wordpress.org/support/users/marcusfridholm/)
 * (@marcusfridholm)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-google-map-shortcode-plugin-broken-in-wp-33/#post-2483946)
 * There seems to be a serious problem with quotes in the script.
    in the parameter“
   info” in the js on the page the attributes in the html uses single quotes. But
   then when it comes to url:s, suddenly the system forces double quotes. This of
   course causes a syntax error, which in turn breaks the map.
 * Also, in the relevant option in the db, the attribute-quotes are escaped, which
   they aren’t when the thingie hits the page. somewhere someone, either the plugin
   or wp strips the escapes.
 * This means it is not so simple as just switching places between singles and doubles,
   since the a-tag for the map contains script within the parameter which in turn
   contains single quotes…
 * The ideal would probably be delimiting the parameter with single quotes, using
   double quotes for the attributes and then having the nested single quotes escaped.
 * I hope this doesn’t sound like gibberish, because I’m a bit short on time when
   I write this. I thought a bit of input would be good though.
 *  [Marcus Fridholm](https://wordpress.org/support/users/marcusfridholm/)
 * (@marcusfridholm)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-google-map-shortcode-plugin-broken-in-wp-33/#post-2483947)
 * replace the line 53 in functions.php with:
 *     ```
       $infodatadirty = gmshc_get_windowhtml($point);
       $infodataclean = addslashes($infodatadirty);
       $output .= "\"info\":\"".$infodataclean."\",\n";
       ```
   
 * It could probably be done in one line, but I prefer this for readability

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

The topic ‘[Plugin: Google Map Shortcode] Plugin Broken in WP 3.3’ is closed to 
new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/google-map-shortcode.svg)
 * [Google Map Shortcode](https://wordpress.org/plugins/google-map-shortcode/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-map-shortcode/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-map-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/google-map-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-map-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-map-shortcode/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Marcus Fridholm](https://wordpress.org/support/users/marcusfridholm/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-google-map-shortcode-plugin-broken-in-wp-33/#post-2483947)
 * Status: not resolved