MapPress Easy Google Maps - Version 2.53.4

Version Description

  • Added: 'dragging' and 'keyboard' shortcode attributes for Leaflet maps
  • Fixed: map shortcode not working in archive text widget
  • Fixed: a few themes/plugins trigger wp_footer too early, preventing templates from loading before scripts
Download this release

Release Info

Developer chrisvrichardson
Plugin Icon 128x128 MapPress Easy Google Maps
Version 2.53.4
Comparing to
See all releases

Code changes from version 2.53.3 to 2.53.4

languages/mappress-google-maps-for-wordpress.pot CHANGED
@@ -1,14 +1,14 @@
1
- # Copyright (C) 2019 MapPress Maps for WordPress
2
# This file is distributed under the same license as the MapPress Maps for WordPress package.
3
msgid ""
4
msgstr ""
5
- "Project-Id-Version: MapPress Maps for WordPress 2.53.3\n"
6
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/mappress-google-maps-for-wordpress\n"
7
- "POT-Creation-Date: 2019-09-25 21:11:43+00:00\n"
8
"MIME-Version: 1.0\n"
9
"Content-Type: text/plain; charset=UTF-8\n"
10
"Content-Transfer-Encoding: 8bit\n"
11
- "PO-Revision-Date: 2019-MO-DA HO:MI+ZONE\n"
12
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
"Language-Team: LANGUAGE <LL@li.org>\n"
14
@@ -98,7 +98,7 @@ msgid "Editor"
98
msgstr ""
99
100
#: forms/settings.php:28 mappress_settings.php:184
101
- #: pro/mappress_pro_settings.php:218
102
msgid "Default"
103
msgstr ""
104
@@ -122,7 +122,7 @@ msgstr ""
122
msgid "MapPress Settings"
123
msgstr ""
124
125
- #: mappress.php:315 mappress.php:776
126
msgid "Version"
127
msgstr ""
128
@@ -226,19 +226,19 @@ msgstr ""
226
msgid "Map not found"
227
msgstr ""
228
229
- #: mappress_map.php:420 pro/mappress_pro_settings.php:36
230
msgid "Filter"
231
msgstr ""
232
233
- #: mappress_map.php:453
234
msgid "Show map"
235
msgstr ""
236
237
- #: mappress_map.php:457
238
msgid "Map"
239
msgstr ""
240
241
- #: mappress_map.php:458
242
msgid "List"
243
msgstr ""
244
@@ -480,7 +480,7 @@ msgid "custom field"
480
msgstr ""
481
482
#: pro/mappress_filter.php:93 pro/mappress_filter.php:142
483
- #: pro/mappress_pro_settings.php:154
484
msgid "Post type"
485
msgstr ""
486
@@ -492,7 +492,7 @@ msgstr ""
492
msgid "Post field"
493
msgstr ""
494
495
- #: pro/mappress_filter.php:129 pro/mappress_pro_settings.php:313
496
msgid "Custom Field"
497
msgstr ""
498
@@ -585,279 +585,279 @@ msgstr ""
585
msgid "Search"
586
msgstr ""
587
588
- #: pro/mappress_pro_settings.php:37
589
msgid "POI content"
590
msgstr ""
591
592
- #: pro/mappress_pro_settings.php:38
593
msgid "POI click"
594
msgstr ""
595
596
- #: pro/mappress_pro_settings.php:39
597
msgid "KMLs"
598
msgstr ""
599
600
- #: pro/mappress_pro_settings.php:40
601
msgid "Thumbnails"
602
msgstr ""
603
604
- #: pro/mappress_pro_settings.php:41
605
msgid "Thumbnail size"
606
msgstr ""
607
608
- #: pro/mappress_pro_settings.php:44 pro/mappress_pro_settings.php:46
609
msgid "Styled maps"
610
msgstr ""
611
612
- #: pro/mappress_pro_settings.php:47
613
msgid "Default style"
614
msgstr ""
615
616
- #: pro/mappress_pro_settings.php:50
617
msgid "Geocoding fields"
618
msgstr ""
619
620
- #: pro/mappress_pro_settings.php:51
621
msgid "Overwrite"
622
msgstr ""
623
624
- #: pro/mappress_pro_settings.php:52
625
msgid "Geocoding errors"
626
msgstr ""
627
628
- #: pro/mappress_pro_settings.php:55
629
msgid "Google Server API key"
630
msgstr ""
631
632
- #: pro/mappress_pro_settings.php:57
633
msgid "Custom templates"
634
msgstr ""
635
636
- #: pro/mappress_pro_settings.php:59
637
msgid "Force resize"
638
msgstr ""
639
640
- #: pro/mappress_pro_settings.php:141
641
msgid "more info"
642
msgstr ""
643
644
- #: pro/mappress_pro_settings.php:142
645
msgid "API key secured by IP address for geocoding (optional)"
646
msgstr ""
647
648
- #: pro/mappress_pro_settings.php:161
649
msgid "Value"
650
msgstr ""
651
652
- #: pro/mappress_pro_settings.php:161 pro/mappress_pro_settings.php:308
653
msgid "Icon"
654
msgstr ""
655
656
- #: pro/mappress_pro_settings.php:176
657
msgid "Enable updates for beta versions"
658
msgstr ""
659
660
- #: pro/mappress_pro_settings.php:189
661
msgid "Checkboxes"
662
msgstr ""
663
664
- #: pro/mappress_pro_settings.php:189
665
msgid "Select"
666
msgstr ""
667
668
- #: pro/mappress_pro_settings.php:196
669
msgid "Key"
670
msgstr ""
671
672
- #: pro/mappress_pro_settings.php:196
673
msgid "Format"
674
msgstr ""
675
676
- #: pro/mappress_pro_settings.php:211
677
msgid "Permanently resize existing maps"
678
msgstr ""
679
680
- #: pro/mappress_pro_settings.php:213
681
msgid "from %s to %s"
682
msgstr ""
683
684
- #: pro/mappress_pro_settings.php:214
685
msgid "Force Resize"
686
msgstr ""
687
688
- #: pro/mappress_pro_settings.php:218
689
msgid "Algolia"
690
msgstr ""
691
692
- #: pro/mappress_pro_settings.php:219
693
msgid "Nominatim"
694
msgstr ""
695
696
- #: pro/mappress_pro_settings.php:220
697
msgid "MapBox"
698
msgstr ""
699
700
- #: pro/mappress_pro_settings.php:234
701
msgid "Standard"
702
msgstr ""
703
704
- #: pro/mappress_pro_settings.php:235
705
msgid "InfoBox"
706
msgstr ""
707
708
- #: pro/mappress_pro_settings.php:242
709
msgid "Below map"
710
msgstr ""
711
712
- #: pro/mappress_pro_settings.php:243
713
msgid "Left of map"
714
msgstr ""
715
716
- #: pro/mappress_pro_settings.php:249
717
msgid "Enter license to enable automatic updates"
718
msgstr ""
719
720
- #: pro/mappress_pro_settings.php:260
721
msgid "Active"
722
msgstr ""
723
724
- #: pro/mappress_pro_settings.php:265
725
msgid "Check Now"
726
msgstr ""
727
728
- #: pro/mappress_pro_settings.php:269
729
msgid "Communication error, please try again later"
730
msgstr ""
731
732
- #: pro/mappress_pro_settings.php:271
733
msgid "License is invalid or expired"
734
msgstr ""
735
736
- #: pro/mappress_pro_settings.php:275
737
msgid "POI title + body"
738
msgstr ""
739
740
- #: pro/mappress_pro_settings.php:275
741
msgid "Post title + excerpt"
742
msgstr ""
743
744
- #: pro/mappress_pro_settings.php:280
745
msgid "Open POI"
746
msgstr ""
747
748
- #: pro/mappress_pro_settings.php:280
749
msgid "Open post"
750
msgstr ""
751
752
- #: pro/mappress_pro_settings.php:280
753
msgid "Open post in new tab"
754
msgstr ""
755
756
- #: pro/mappress_pro_settings.php:285
757
msgid "Include KML POIs in mashups"
758
msgstr ""
759
760
- #: pro/mappress_pro_settings.php:297
761
msgid "%d Errors"
762
msgstr ""
763
764
- #: pro/mappress_pro_settings.php:307
765
msgid "Address line "
766
msgstr ""
767
768
- #: pro/mappress_pro_settings.php:308
769
msgid "Latitude"
770
msgstr ""
771
772
- #: pro/mappress_pro_settings.php:308
773
msgid "Longitude"
774
msgstr ""
775
776
- #: pro/mappress_pro_settings.php:308
777
msgid "Title"
778
msgstr ""
779
780
- #: pro/mappress_pro_settings.php:308
781
msgid "Body"
782
msgstr ""
783
784
- #: pro/mappress_pro_settings.php:308
785
msgid "Zoom"
786
msgstr ""
787
788
- #: pro/mappress_pro_settings.php:313
789
msgid "Map Field"
790
msgstr ""
791
792
- #: pro/mappress_pro_settings.php:326
793
msgid "Overwrite maps when posts are saved"
794
msgstr ""
795
796
- #: pro/mappress_pro_settings.php:330
797
msgid "Show a list of POIs with each map"
798
msgstr ""
799
800
- #: pro/mappress_pro_settings.php:334
801
msgid "Enable search"
802
msgstr ""
803
804
- #: pro/mappress_pro_settings.php:338
805
msgid "Sort POI list by title"
806
msgstr ""
807
808
- #: pro/mappress_pro_settings.php:344
809
msgid "No styles have been defined yet"
810
msgstr ""
811
812
- #: pro/mappress_pro_settings.php:353
813
msgid "Styled Maps Wizard"
814
msgstr ""
815
816
- #: pro/mappress_pro_settings.php:354
817
msgid "JSON from Google's %s"
818
msgstr ""
819
820
- #: pro/mappress_pro_settings.php:358 pro/mappress_pro_settings.php:374
821
msgid "Style name"
822
msgstr ""
823
824
- #: pro/mappress_pro_settings.php:370
825
msgid "Mapbox Studio"
826
msgstr ""
827
828
- #: pro/mappress_pro_settings.php:371
829
msgid "Enter styles from %s"
830
msgstr ""
831
832
- #: pro/mappress_pro_settings.php:389
833
msgid "Only admins or multisite super-admins can edit templates"
834
msgstr ""
835
836
- #: pro/mappress_pro_settings.php:394
837
msgid "WordPress 4.9 or higher is needed to use the template editor."
838
msgstr ""
839
840
- #: pro/mappress_pro_settings.php:400
841
msgid "Map popup"
842
msgstr ""
843
844
- #: pro/mappress_pro_settings.php:401
845
msgid "Map list item"
846
msgstr ""
847
848
- #: pro/mappress_pro_settings.php:402
849
msgid "Mashup popup"
850
msgstr ""
851
852
- #: pro/mappress_pro_settings.php:403
853
msgid "Mashup list item"
854
msgstr ""
855
856
- #: pro/mappress_pro_settings.php:417
857
msgid "or "
858
msgstr ""
859
860
- #: pro/mappress_pro_settings.php:425
861
msgid "Show featured image thumbnails in mashup POIs"
862
msgstr ""
863
1
+ # Copyright (C) 2020 MapPress Maps for WordPress
2
# This file is distributed under the same license as the MapPress Maps for WordPress package.
3
msgid ""
4
msgstr ""
5
+ "Project-Id-Version: MapPress Maps for WordPress 2.53.4\n"
6
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/mappress-google-maps-for-wordpress\n"
7
+ "POT-Creation-Date: 2020-01-18 03:57:13+00:00\n"
8
"MIME-Version: 1.0\n"
9
"Content-Type: text/plain; charset=UTF-8\n"
10
"Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2020-MO-DA HO:MI+ZONE\n"
12
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
"Language-Team: LANGUAGE <LL@li.org>\n"
14
98
msgstr ""
99
100
#: forms/settings.php:28 mappress_settings.php:184
101
+ #: pro/mappress_pro_settings.php:219
102
msgid "Default"
103
msgstr ""
104
122
msgid "MapPress Settings"
123
msgstr ""
124
125
+ #: mappress.php:315 mappress.php:780
126
msgid "Version"
127
msgstr ""
128
226
msgid "Map not found"
227
msgstr ""
228
229
+ #: mappress_map.php:423 pro/mappress_pro_settings.php:37
230
msgid "Filter"
231
msgstr ""
232
233
+ #: mappress_map.php:456
234
msgid "Show map"
235
msgstr ""
236
237
+ #: mappress_map.php:460
238
msgid "Map"
239
msgstr ""
240
241
+ #: mappress_map.php:461
242
msgid "List"
243
msgstr ""
244
480
msgstr ""
481
482
#: pro/mappress_filter.php:93 pro/mappress_filter.php:142
483
+ #: pro/mappress_pro_settings.php:155
484
msgid "Post type"
485
msgstr ""
486
492
msgid "Post field"
493
msgstr ""
494
495
+ #: pro/mappress_filter.php:129 pro/mappress_pro_settings.php:314
496
msgid "Custom Field"
497
msgstr ""
498
585
msgid "Search"
586
msgstr ""
587
588
+ #: pro/mappress_pro_settings.php:38
589
msgid "POI content"
590
msgstr ""
591
592
+ #: pro/mappress_pro_settings.php:39
593
msgid "POI click"
594
msgstr ""
595
596
+ #: pro/mappress_pro_settings.php:40
597
msgid "KMLs"
598
msgstr ""
599
600
+ #: pro/mappress_pro_settings.php:41
601
msgid "Thumbnails"
602
msgstr ""
603
604
+ #: pro/mappress_pro_settings.php:42
605
msgid "Thumbnail size"
606
msgstr ""
607
608
+ #: pro/mappress_pro_settings.php:45 pro/mappress_pro_settings.php:47
609
msgid "Styled maps"
610
msgstr ""
611
612
+ #: pro/mappress_pro_settings.php:48
613
msgid "Default style"
614
msgstr ""
615
616
+ #: pro/mappress_pro_settings.php:51
617
msgid "Geocoding fields"
618
msgstr ""
619
620
+ #: pro/mappress_pro_settings.php:52
621
msgid "Overwrite"
622
msgstr ""
623
624
+ #: pro/mappress_pro_settings.php:53
625
msgid "Geocoding errors"
626
msgstr ""
627
628
+ #: pro/mappress_pro_settings.php:56
629
msgid "Google Server API key"
630
msgstr ""
631
632
+ #: pro/mappress_pro_settings.php:58
633
msgid "Custom templates"
634
msgstr ""
635
636
+ #: pro/mappress_pro_settings.php:60
637
msgid "Force resize"
638
msgstr ""
639
640
+ #: pro/mappress_pro_settings.php:142
641
msgid "more info"
642
msgstr ""
643
644
+ #: pro/mappress_pro_settings.php:143
645
msgid "API key secured by IP address for geocoding (optional)"
646
msgstr ""
647
648
+ #: pro/mappress_pro_settings.php:162
649
msgid "Value"
650
msgstr ""
651
652
+ #: pro/mappress_pro_settings.php:162 pro/mappress_pro_settings.php:309
653
msgid "Icon"
654
msgstr ""
655
656
+ #: pro/mappress_pro_settings.php:177
657
msgid "Enable updates for beta versions"
658
msgstr ""
659
660
+ #: pro/mappress_pro_settings.php:190
661
msgid "Checkboxes"
662
msgstr ""
663
664
+ #: pro/mappress_pro_settings.php:190
665
msgid "Select"
666
msgstr ""
667
668
+ #: pro/mappress_pro_settings.php:197
669
msgid "Key"
670
msgstr ""
671
672
+ #: pro/mappress_pro_settings.php:197
673
msgid "Format"
674
msgstr ""
675
676
+ #: pro/mappress_pro_settings.php:212
677
msgid "Permanently resize existing maps"
678
msgstr ""
679
680
+ #: pro/mappress_pro_settings.php:214
681
msgid "from %s to %s"
682
msgstr ""
683
684
+ #: pro/mappress_pro_settings.php:215
685
msgid "Force Resize"
686
msgstr ""
687
688
+ #: pro/mappress_pro_settings.php:219
689
msgid "Algolia"
690
msgstr ""
691
692
+ #: pro/mappress_pro_settings.php:220
693
msgid "Nominatim"
694
msgstr ""
695
696
+ #: pro/mappress_pro_settings.php:221
697
msgid "MapBox"
698
msgstr ""
699
700
+ #: pro/mappress_pro_settings.php:235
701
msgid "Standard"
702
msgstr ""
703
704
+ #: pro/mappress_pro_settings.php:236
705
msgid "InfoBox"
706
msgstr ""
707
708
+ #: pro/mappress_pro_settings.php:243
709
msgid "Below map"
710
msgstr ""
711
712
+ #: pro/mappress_pro_settings.php:244
713
msgid "Left of map"
714
msgstr ""
715
716
+ #: pro/mappress_pro_settings.php:250
717
msgid "Enter license to enable automatic updates"
718
msgstr ""
719
720
+ #: pro/mappress_pro_settings.php:261
721
msgid "Active"
722
msgstr ""
723
724
+ #: pro/mappress_pro_settings.php:266
725
msgid "Check Now"
726
msgstr ""
727
728
+ #: pro/mappress_pro_settings.php:270
729
msgid "Communication error, please try again later"
730
msgstr ""
731
732
+ #: pro/mappress_pro_settings.php:272
733
msgid "License is invalid or expired"
734
msgstr ""
735
736
+ #: pro/mappress_pro_settings.php:276
737
msgid "POI title + body"
738
msgstr ""
739
740
+ #: pro/mappress_pro_settings.php:276
741
msgid "Post title + excerpt"
742
msgstr ""
743
744
+ #: pro/mappress_pro_settings.php:281
745
msgid "Open POI"
746
msgstr ""
747
748
+ #: pro/mappress_pro_settings.php:281
749
msgid "Open post"
750
msgstr ""
751
752
+ #: pro/mappress_pro_settings.php:281
753
msgid "Open post in new tab"
754
msgstr ""
755
756
+ #: pro/mappress_pro_settings.php:286
757
msgid "Include KML POIs in mashups"
758
msgstr ""
759
760
+ #: pro/mappress_pro_settings.php:298
761
msgid "%d Errors"
762
msgstr ""
763
764
+ #: pro/mappress_pro_settings.php:308
765
msgid "Address line "
766
msgstr ""
767
768
+ #: pro/mappress_pro_settings.php:309
769
msgid "Latitude"
770
msgstr ""
771
772
+ #: pro/mappress_pro_settings.php:309
773
msgid "Longitude"
774
msgstr ""
775
776
+ #: pro/mappress_pro_settings.php:309
777
msgid "Title"
778
msgstr ""
779
780
+ #: pro/mappress_pro_settings.php:309
781
msgid "Body"
782
msgstr ""
783
784
+ #: pro/mappress_pro_settings.php:309
785
msgid "Zoom"
786
msgstr ""
787
788
+ #: pro/mappress_pro_settings.php:314
789
msgid "Map Field"
790
msgstr ""
791
792
+ #: pro/mappress_pro_settings.php:327
793
msgid "Overwrite maps when posts are saved"
794
msgstr ""
795
796
+ #: pro/mappress_pro_settings.php:331
797
msgid "Show a list of POIs with each map"
798
msgstr ""
799
800
+ #: pro/mappress_pro_settings.php:339
801
msgid "Enable search"
802
msgstr ""
803
804
+ #: pro/mappress_pro_settings.php:343
805
msgid "Sort POI list by title"
806
msgstr ""
807
808
+ #: pro/mappress_pro_settings.php:349
809
msgid "No styles have been defined yet"
810
msgstr ""
811
812
+ #: pro/mappress_pro_settings.php:358
813
msgid "Styled Maps Wizard"
814
msgstr ""
815
816
+ #: pro/mappress_pro_settings.php:359
817
msgid "JSON from Google's %s"
818
msgstr ""
819
820
+ #: pro/mappress_pro_settings.php:363 pro/mappress_pro_settings.php:379
821
msgid "Style name"
822
msgstr ""
823
824
+ #: pro/mappress_pro_settings.php:375
825
msgid "Mapbox Studio"
826
msgstr ""
827
828
+ #: pro/mappress_pro_settings.php:376
829
msgid "Enter styles from %s"
830
msgstr ""
831
832
+ #: pro/mappress_pro_settings.php:394
833
msgid "Only admins or multisite super-admins can edit templates"
834
msgstr ""
835
836
+ #: pro/mappress_pro_settings.php:399
837
msgid "WordPress 4.9 or higher is needed to use the template editor."
838
msgstr ""
839
840
+ #: pro/mappress_pro_settings.php:405
841
msgid "Map popup"
842
msgstr ""
843
844
+ #: pro/mappress_pro_settings.php:406
845
msgid "Map list item"
846
msgstr ""
847
848
+ #: pro/mappress_pro_settings.php:407
849
msgid "Mashup popup"
850
msgstr ""
851
852
+ #: pro/mappress_pro_settings.php:408
853
msgid "Mashup list item"
854
msgstr ""
855
856
+ #: pro/mappress_pro_settings.php:422
857
msgid "or "
858
msgstr ""
859
860
+ #: pro/mappress_pro_settings.php:430
861
msgid "Show featured image thumbnails in mashup POIs"
862
msgstr ""
863
mappress.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: MapPress Maps for WordPress
4
Plugin URI: https://www.mappresspro.com/mappress
5
Author URI: https://www.mappresspro.com/chris-contact
6
Description: MapPress makes it easy to add Google and Leaflet Maps to WordPress
7
- Version: 2.53.3
8
Author: Chris Richardson
9
Text Domain: mappress-google-maps-for-wordpress
10
Thanks to all the translators and to Matthias Stasiak for his wonderful icons (http://code.google.com/p/google-maps-icons/)
@@ -35,7 +35,7 @@ if (is_dir(dirname( __FILE__ ) . '/pro')) {
35
}
36
37
class Mappress {
38
- const VERSION = '2.53.3';
39
40
static
41
$baseurl,
@@ -584,7 +584,7 @@ class Mappress {
584
$atts = array_change_key_case($atts);
585
586
// Map options - includes both leaflet and Google
587
- foreach(array('disableDefaultUI', 'disableDoubleClickZoom', 'draggable', 'fullscreenControl', 'keyboardShortcuts', 'mapTypeControl', 'maxZoom', 'minZoom', 'panControl', 'rotateControl', 'scaleControl', 'scrollwheel', 'scrollWheelZoom', 'streetViewControl', 'zoomControl') as $opt) {
588
$lcopt = strtolower($opt);
589
if (isset($atts[$lcopt])) {
590
$atts['mapopts'][$opt] = $atts[$lcopt];
@@ -646,6 +646,10 @@ class Mappress {
646
// Determine what to show
647
$mapid = (isset($atts['mapid'])) ? $atts['mapid'] : null;
648
649
if ($mapid) {
650
// Show map by mapid
651
$map = Mappress_Map::get($mapid);
4
Plugin URI: https://www.mappresspro.com/mappress
5
Author URI: https://www.mappresspro.com/chris-contact
6
Description: MapPress makes it easy to add Google and Leaflet Maps to WordPress
7
+ Version: 2.53.4
8
Author: Chris Richardson
9
Text Domain: mappress-google-maps-for-wordpress
10
Thanks to all the translators and to Matthias Stasiak for his wonderful icons (http://code.google.com/p/google-maps-icons/)
35
}
36
37
class Mappress {
38
+ const VERSION = '2.53.4';
39
40
static
41
$baseurl,
584
$atts = array_change_key_case($atts);
585
586
// Map options - includes both leaflet and Google
587
+ foreach(array('disableDefaultUI', 'disableDoubleClickZoom', 'draggable', 'dragging', 'fullscreenControl', 'keyboard', 'keyboardShortcuts', 'mapTypeControl', 'maxZoom', 'minZoom', 'panControl', 'rotateControl', 'scaleControl', 'scrollwheel', 'scrollWheelZoom', 'streetViewControl', 'zoomControl') as $opt) {
588
$lcopt = strtolower($opt);
589
if (isset($atts[$lcopt])) {
590
$atts['mapopts'][$opt] = $atts[$lcopt];
646
// Determine what to show
647
$mapid = (isset($atts['mapid'])) ? $atts['mapid'] : null;
648
649
+ // On archive pages, $post isn't set
650
+ if (!$mapid && !$post)
651
+ return;
652
+
653
if ($mapid) {
654
// Show map by mapid
655
$map = Mappress_Map::get($mapid);
mappress_map.php CHANGED
@@ -334,6 +334,9 @@ class Mappress_Map extends Mappress_Obj {
334
if (empty($this->query))
335
$this->prepare();
336
337
$html = Mappress_Template::get_template('map', array('map' => $this));
338
Mappress::load();
339
$script = "mapp.data.push( " . json_encode($this) . " ); \r\nif (typeof mapp.load != 'undefined') { mapp.load(); };";
@@ -490,9 +493,6 @@ class Mappress_Map extends Mappress_Obj {
490
491
// Autoicons
492
$this->autoicons();
493
-
494
- // Last chance to alter map before display
495
- do_action('mappress_map_display', $this);
496
}
497
498
/**
334
if (empty($this->query))
335
$this->prepare();
336
337
+ // Last chance to alter map before display
338
+ do_action('mappress_map_display', $this);
339
+
340
$html = Mappress_Template::get_template('map', array('map' => $this));
341
Mappress::load();
342
$script = "mapp.data.push( " . json_encode($this) . " ); \r\nif (typeof mapp.load != 'undefined') { mapp.load(); };";
493
494
// Autoicons
495
$this->autoicons();
496
}
497
498
/**
mappress_template.php CHANGED
@@ -82,8 +82,8 @@ class Mappress_Template extends Mappress_Obj {
82
83
static function load($footer) {
84
if ($footer) {
85
- add_action('wp_footer', array(__CLASS__, 'print_templates'));
86
- add_action('admin_footer', array(__CLASS__, 'print_templates'));
87
} else {
88
self::print_templates();
89
}
82
83
static function load($footer) {
84
if ($footer) {
85
+ add_action('wp_footer', array(__CLASS__, 'print_templates'), -10);
86
+ add_action('admin_footer', array(__CLASS__, 'print_templates'), -10);
87
} else {
88
self::print_templates();
89
}
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
Tags: leaflet, openstreetmap, osm, mapbox, map box, google maps,google,map,maps,easy,poi,mapping,mapper,gps,lat,lon,latitude,longitude,geocoder,geocoding,georss,geo rss,geo,v3,marker,mashup,mash,api,v3,buddypress,mashup,geo,wp-geo,geo mashup,simplemap,simple,wpml
5
Requires at least: 4.5
6
Tested up to: 5.2
7
- Stable tag: 2.53.3
8
9
== Description ==
10
MapPress adds beautiful, interactive Google or Leaflet maps to WordPress.
@@ -86,6 +86,11 @@ Please see the plugin documentation pages:
86
87
== Changelog ==
88
89
= 2.53.3 =
90
* Changed: removed space in version string because of conflict with some CDNs
91
* Changed: editor made slightly (25px) taller
4
Tags: leaflet, openstreetmap, osm, mapbox, map box, google maps,google,map,maps,easy,poi,mapping,mapper,gps,lat,lon,latitude,longitude,geocoder,geocoding,georss,geo rss,geo,v3,marker,mashup,mash,api,v3,buddypress,mashup,geo,wp-geo,geo mashup,simplemap,simple,wpml
5
Requires at least: 4.5
6
Tested up to: 5.2
7
+ Stable tag: 2.53.4
8
9
== Description ==
10
MapPress adds beautiful, interactive Google or Leaflet maps to WordPress.
86
87
== Changelog ==
88
89
+ = 2.53.4 =
90
+ * Added: 'dragging' and 'keyboard' shortcode attributes for Leaflet maps
91
+ * Fixed: map shortcode not working in archive text widget
92
+ * Fixed: a few themes/plugins trigger wp_footer too early, preventing templates from loading before scripts
93
+
94
= 2.53.3 =
95
* Changed: removed space in version string because of conflict with some CDNs
96
* Changed: editor made slightly (25px) taller