Hi,
The plugin currently only supports maps.google.com url’s (the .com domain).
International users are usually redirected to their local version of the maps site (for me: maps.google.nl).
When I paste the .nl version of the <iframe> tag into the editor, the plugin doesn’t recognize it.
Changing the regex (line 103 in your plugin) to something as:
preg_match( '!https?://maps.google.[a-z]{2,3}!', $url )
or just
preg_match( '!https?://maps.google.!', $url )
might be a solution.
https://www.ads-software.com/extend/plugins/unofficial-wordpresscom-google-maps-shortcode/
]]>Hej,
It could be great if you add multisite support to this plugin.
Today in a multisite this plugin works just for the superadmin.
For blog admins the iframe is stripped before the iframe is encoded to shortcode.
This could be a great solution for embedding google maps in a multisite.(just like on wordpress.com)
https://www.ads-software.com/extend/plugins/unofficial-wordpresscom-google-maps-shortcode/
]]>I’m getting these messages on post update save. Though posts are fine correct.
Any suggestions for these? I’m using 3.2.1 and posts imported from WordPress.com
Warning: Missing argument 2 for flh_wpcomgms_search_map_code() in …/wp-content/plugins/unofficial-wordpresscom-google-maps-shortcode/unofficial-wordpresscom-google-maps-shortcode.php on line 88
Warning: Missing argument 2 for flh_wpcomgms_search_map_code() in …/wp-content/plugins/unofficial-wordpresscom-google-maps-shortcode/unofficial-wordpresscom-google-maps-shortcode.php on line 88
Warning: Cannot modify header information – headers already sent by (output started at …/wp-content/plugins/unofficial-wordpresscom-google-maps-shortcode/unofficial-wordpresscom-google-maps-shortcode.php:88) in …/wp-includes/pluggable.php on line 934
https://www.ads-software.com/extend/plugins/unofficial-wordpresscom-google-maps-shortcode/
]]>