Version Description
- Once plugin activated, goes to plugin settings page directly.
Download this release
Release Info
Developer | milonfci |
Plugin | WP Google Map |
Version | 1.0.4 |
Comparing to | |
See all releases |
Code changes from version 1.0.3 to 1.0.4
- readme.txt +6 -2
- srm_gmap_embed.php +15 -2
readme.txt
CHANGED
@@ -4,8 +4,8 @@ Donate link: http://www.srmilon.com/
|
|
4 |
Tags: Google Map Embed, Google Map, gmap, google map embed, wp map, wp map embed, map embed, best google maps, best maps, bing maps, cross browser, custom google map, custom google maps, map direction, easy map, geo, geocoder, gmaps, google earth, google map plugin, google map shortcode, google map widget, google maps v3, googlemaps, gprs, gps, gpx, kml, latitude, Longitude, location, loaction by address, map, map directions, map markers, map plugin, map shortcode, map styles, maps google, post map, map point, polygons, roads, routes, store locator, street view, wp google map, contact page map, google map wordpress, google maps wordpress, google maps for wordpress, simple google map, simple google map plugin, wp google maps,maps
|
5 |
Requires at least: 2.9
|
6 |
Tested up to: 4.6.1
|
7 |
-
Version: 1.0.
|
8 |
-
Stable tag: 1.0.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -97,3 +97,7 @@ Go to =Appearence=->=Widget= then you will see a widget named "Google Map SRM".
|
|
97 |
= 1.0.3 =
|
98 |
|
99 |
* Self api key adding option added
|
|
|
|
|
|
|
|
4 |
Tags: Google Map Embed, Google Map, gmap, google map embed, wp map, wp map embed, map embed, best google maps, best maps, bing maps, cross browser, custom google map, custom google maps, map direction, easy map, geo, geocoder, gmaps, google earth, google map plugin, google map shortcode, google map widget, google maps v3, googlemaps, gprs, gps, gpx, kml, latitude, Longitude, location, loaction by address, map, map directions, map markers, map plugin, map shortcode, map styles, maps google, post map, map point, polygons, roads, routes, store locator, street view, wp google map, contact page map, google map wordpress, google maps wordpress, google maps for wordpress, simple google map, simple google map plugin, wp google maps,maps
|
5 |
Requires at least: 2.9
|
6 |
Tested up to: 4.6.1
|
7 |
+
Version: 1.0.4
|
8 |
+
Stable tag: 1.0.4
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
97 |
= 1.0.3 =
|
98 |
|
99 |
* Self api key adding option added
|
100 |
+
|
101 |
+
= 1.0.4 =
|
102 |
+
|
103 |
+
* Once plugin activated, goes to plugin settings page directly.
|
srm_gmap_embed.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
Description: The plugin will help to google map Embed in post and pages also in sidebar with widget.
|
6 |
Author: SRMILON
|
7 |
Author URI: http://www.srmilon.com
|
8 |
-
Version: 1.0.
|
9 |
*/
|
10 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) exit;
|
@@ -25,7 +25,7 @@ if (!class_exists('srm_gmap_embed_main')){
|
|
25 |
function __construct()
|
26 |
{
|
27 |
$this->wpgmap_api_key = get_option('wpgmap_api_key');
|
28 |
-
|
29 |
add_action('wp_enqueue_scripts', array($this, 'gmap_enqueue_scripts'));
|
30 |
add_action('admin_enqueue_scripts', array($this, 'enqueue_admin_gmap_scripts'));
|
31 |
add_action('admin_menu', array($this, 'gmap_create_menu'));
|
@@ -297,8 +297,21 @@ if (!class_exists('srm_gmap_embed_main')){
|
|
297 |
exit;
|
298 |
}
|
299 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
300 |
}
|
301 |
|
|
|
302 |
}
|
303 |
new srm_gmap_embed_main();
|
304 |
// including requird files
|
5 |
Description: The plugin will help to google map Embed in post and pages also in sidebar with widget.
|
6 |
Author: SRMILON
|
7 |
Author URI: http://www.srmilon.com
|
8 |
+
Version: 1.0.4
|
9 |
*/
|
10 |
|
11 |
if ( ! defined( 'ABSPATH' ) ) exit;
|
25 |
function __construct()
|
26 |
{
|
27 |
$this->wpgmap_api_key = get_option('wpgmap_api_key');
|
28 |
+
add_action( 'activated_plugin', array($this, 'wpgmap_do_after_activation'), 10, 2 );
|
29 |
add_action('wp_enqueue_scripts', array($this, 'gmap_enqueue_scripts'));
|
30 |
add_action('admin_enqueue_scripts', array($this, 'enqueue_admin_gmap_scripts'));
|
31 |
add_action('admin_menu', array($this, 'gmap_create_menu'));
|
297 |
exit;
|
298 |
}
|
299 |
|
300 |
+
/**
|
301 |
+
* Works on when plugin is activated successfully
|
302 |
+
*/
|
303 |
+
|
304 |
+
function wpgmap_do_after_activation( $plugin, $network_activation ) {
|
305 |
+
// do stuff
|
306 |
+
if($plugin=='gmap-embed/srm_gmap_embed.php') {
|
307 |
+
wp_redirect(admin_url('admin.php?page=wpgmapembed'));
|
308 |
+
exit;
|
309 |
+
}
|
310 |
+
}
|
311 |
+
|
312 |
}
|
313 |
|
314 |
+
|
315 |
}
|
316 |
new srm_gmap_embed_main();
|
317 |
// including requird files
|