Google Maps Easy - Version 1.9.32

Version Description

Download this release

Release Info

Developer supsystic.com
Plugin Icon 128x128 Google Maps Easy
Version 1.9.32
Comparing to
See all releases

Code changes from version 1.9.31 to 1.9.32

config.php CHANGED
@@ -48,7 +48,7 @@
48
  define('GMP_EOL', "\n");
49
 
50
  define('GMP_PLUGIN_INSTALLED', true);
51
- define('GMP_VERSION_PLUGIN', '1.9.31'); //GMP_VERSION is pre-defined constant for PHP GMP module http://php.net/manual/en/book.gmp.php
52
  define('GMP_USER', 'user');
53
 
54
  define('GMP_CLASS_PREFIX', 'gmpc');
48
  define('GMP_EOL', "\n");
49
 
50
  define('GMP_PLUGIN_INSTALLED', true);
51
+ define('GMP_VERSION_PLUGIN', '1.9.32'); //GMP_VERSION is pre-defined constant for PHP GMP module http://php.net/manual/en/book.gmp.php
52
  define('GMP_USER', 'user');
53
 
54
  define('GMP_CLASS_PREFIX', 'gmpc');
gmp.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Google Maps Easy
4
  * Plugin URI: http://supsystic.com/plugins/google-maps-plugin/
5
  * Description: The easiest way to create Google Map with markers or locations. Display any data on the map: text, images, videos. Custom map marker icons
6
- * Version: 1.9.31
7
  * Author: supsystic.com
8
  * Author URI: http://supsystic.com
9
  * Text Domain: google-maps-easy
3
  * Plugin Name: Google Maps Easy
4
  * Plugin URI: http://supsystic.com/plugins/google-maps-plugin/
5
  * Description: The easiest way to create Google Map with markers or locations. Display any data on the map: text, images, videos. Custom map marker icons
6
+ * Version: 1.9.32
7
  * Author: supsystic.com
8
  * Author URI: http://supsystic.com
9
  * Text Domain: google-maps-easy
modules/marker/models/marker.php CHANGED
@@ -43,7 +43,8 @@ class markerModelGmp extends modelGmp {
43
  //save first groups value in markers table to better compatibility
44
  $markerGroupIds = $marker['marker_group_id'];
45
  if (!$import) {
46
- $marker['marker_group_id'] = $first_value = reset($markerGroupIds);
 
47
  }
48
  $marker['params'] = isset($marker['params']) ? utilsGmp::serialize($marker['params']) : '';
49
 
43
  //save first groups value in markers table to better compatibility
44
  $markerGroupIds = $marker['marker_group_id'];
45
  if (!$import) {
46
+ $first_value = is_array($markerGroupIds) ? reset($markerGroupIds) : $markerGroupIds;
47
+ $marker['marker_group_id'] = $first_value;
48
  }
49
  $marker['params'] = isset($marker['params']) ? utilsGmp::serialize($marker['params']) : '';
50
 
modules/options/mod.php CHANGED
@@ -3,7 +3,7 @@ class optionsGmp extends moduleGmp {
3
  private $_tabs = array();
4
  private $_options = array();
5
  private $_optionsToCategoires = array(); // For faster search
6
-
7
  public function init() {
8
  dispatcherGmp::addAction('afterModulesInit', array($this, 'initAllOptValues'));
9
  dispatcherGmp::addFilter('mainAdminTabs', array($this, 'addAdminTab'));
@@ -49,7 +49,7 @@ class optionsGmp extends moduleGmp {
49
  public function getTabs() {
50
  if(empty($this->_tabs)) {
51
  $this->_tabs = dispatcherGmp::applyFilters('mainAdminTabs', array(
52
- //'main_page' => array('label' => __('Main Page', GMP_LANG_CODE), 'callback' => array($this, 'getTabContent'), 'wp_icon' => 'dashicons-admin-home', 'sort_order' => 0),
53
  ));
54
  foreach($this->_tabs as $tabKey => $tab) {
55
  if(!isset($this->_tabs[ $tabKey ]['url'])) {
@@ -78,7 +78,7 @@ class optionsGmp extends moduleGmp {
78
  }
79
  public function getActiveTab() {
80
  $reqTab = reqGmp::getVar('tab');
81
- return empty($reqTab) ? 'gmap' : $reqTab;
82
  }
83
  public function getTabUrl($tab = '') {
84
  static $mainUrl;
@@ -137,4 +137,3 @@ class optionsGmp extends moduleGmp {
137
  return $opts ? $opts['opts'] : false;
138
  }
139
  }
140
-
3
  private $_tabs = array();
4
  private $_options = array();
5
  private $_optionsToCategoires = array(); // For faster search
6
+
7
  public function init() {
8
  dispatcherGmp::addAction('afterModulesInit', array($this, 'initAllOptValues'));
9
  dispatcherGmp::addFilter('mainAdminTabs', array($this, 'addAdminTab'));
49
  public function getTabs() {
50
  if(empty($this->_tabs)) {
51
  $this->_tabs = dispatcherGmp::applyFilters('mainAdminTabs', array(
52
+ //'main_page' => array('label' => __('Main Page', GMP_LANG_CODE), 'callback' => array($this, 'getTabContent'), 'wp_icon' => 'dashicons-admin-home', 'sort_order' => 0),
53
  ));
54
  foreach($this->_tabs as $tabKey => $tab) {
55
  if(!isset($this->_tabs[ $tabKey ]['url'])) {
78
  }
79
  public function getActiveTab() {
80
  $reqTab = reqGmp::getVar('tab');
81
+ return empty($reqTab) ? 'gmap' : esc_attr($reqTab);
82
  }
83
  public function getTabUrl($tab = '') {
84
  static $mainUrl;
137
  return $opts ? $opts['opts'] : false;
138
  }
139
  }
 
readme.txt CHANGED
@@ -5,7 +5,7 @@ Plugin URI: https://supsystic.com/plugins/google-maps-plugin
5
  Donate link: https://supsystic.com/plugins/google-maps-plugin
6
  Tags: google map, map, Google Maps, map markers, location
7
  Tested up to: 5.7
8
- Stable tag: 1.9.31
9
 
10
  Google Maps with markers, locations and clusterization, KML layers and filters. Custom Google map markers with text, images, videos, links.
11
 
@@ -293,6 +293,10 @@ Google Maps Easy plugin admin area. Add a marker to the google map.
293
 
294
 
295
  == Changelog ==
 
 
 
 
296
  = Google Map Plugin v1.9.31 / 26.03.2021 =
297
  * Add fix for WP 5.7
298
  * Add security fixes
5
  Donate link: https://supsystic.com/plugins/google-maps-plugin
6
  Tags: google map, map, Google Maps, map markers, location
7
  Tested up to: 5.7
8
+ Stable tag: 1.9.32
9
 
10
  Google Maps with markers, locations and clusterization, KML layers and filters. Custom Google map markers with text, images, videos, links.
11
 
293
 
294
 
295
  == Changelog ==
296
+ = Google Map Plugin v1.9.32 / 24.05.2021 =
297
+ * Add support for PHP 8
298
+ * add fix for tab xss
299
+
300
  = Google Map Plugin v1.9.31 / 26.03.2021 =
301
  * Add fix for WP 5.7
302
  * Add security fixes