Skip to content

Commit db43992

Browse files
committed
v1.1.8 - Show/Hide Overlay Types bug fix
Thanks to [YosoraLife](https://github.com/YosoraLife) for raising this [issue](#41).
1 parent 7a0c7f8 commit db43992

15 files changed

+25
-17
lines changed

Waymark.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Plugin Name: Waymark
55
Plugin URI: https://www.waymark.dev/
66
Description: Mapping with WordPress made easy. With Waymark enabled, click on the "Maps" link in the sidebar to create and edit Maps. Once you are happy with your Map, copy the Waymark shortcode and add it to your content.
7-
Version: 1.1.7
7+
Version: 1.1.8
88
Text Domain: waymark
99
Author: Joe Hawes
1010
Author URI: https://www.morehawes.ca/

inc/Front/Waymark_Shortcode.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -373,10 +373,10 @@ function handle_shortcode($shortcode_data, $content = null) {
373373
$overlay_type_explode = explode(',', $shortcode_data[$show_hide_type]);
374374

375375
foreach ($overlay_type_explode as $overlay_type) {
376-
$out .= ' for(i in waymark_config.' . $overlay_kind . '_types) {' . "\n";
377-
$out .= ' var this_key = waymark_viewer.make_key(waymark_config.' . $overlay_kind . '_types[i]["' . $overlay_kind . '_title"]);' . "\n";
376+
$out .= ' for(i in waymark_config.map_options.' . $overlay_kind . '_types) {' . "\n";
377+
$out .= ' var this_key = waymark_viewer.make_key(waymark_config.map_options.' . $overlay_kind . '_types[i]["' . $overlay_kind . '_title"]);' . "\n";
378378
$out .= ' if(this_key == "' . $overlay_type . '") {' . "\n";
379-
$out .= ' waymark_config.' . $overlay_kind . '_types[i]["' . $overlay_kind . '_display"] = ' . $overlay_display . ';' . "\n";
379+
$out .= ' waymark_config.map_options.' . $overlay_kind . '_types[i]["' . $overlay_kind . '_display"] = ' . $overlay_display . ';' . "\n";
380380
$out .= ' }' . "\n";
381381
$out .= ' }' . "\n";
382382
}

inc/Waymark_Config.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public static function init() {
1111
'plugin_name' => 'Waymark',
1212
'plugin_name_short' => 'Waymark',
1313
'custom_types' => array(),
14-
'plugin_version' => '1.1.7',
14+
'plugin_version' => '1.1.8',
1515
'nonce_string' => 'Waymark_Nonce',
1616
'site_url' => 'https://www.waymark.dev/',
1717
'directory_url' => 'https://wordpress.org/support/plugin/waymark/',

languages/waymark-en_CA.po

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# This file is distributed under the GPLv2.
33
msgid ""
44
msgstr ""
5-
"Project-Id-Version: Waymark 1.1.7\n"
5+
"Project-Id-Version: Waymark 1.1.8\n"
66
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/waymark\n"
77
"POT-Creation-Date: 2024-01-18 00:24:31+00:00\n"
88
"PO-Revision-Date: 2024-01-23 10:12-0800\n"

languages/waymark-en_GB.po

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# This file is distributed under the GPLv2.
33
msgid ""
44
msgstr ""
5-
"Project-Id-Version: Waymark 1.1.7\n"
5+
"Project-Id-Version: Waymark 1.1.8\n"
66
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/waymark\n"
77
"POT-Creation-Date: 2024-01-18 00:24:31+00:00\n"
88
"PO-Revision-Date: 2024-01-23 08:47-0800\n"

languages/waymark-es_ES.po

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# This file is distributed under the GPLv2.
33
msgid ""
44
msgstr ""
5-
"Project-Id-Version: Waymark 1.1.7\n"
5+
"Project-Id-Version: Waymark 1.1.8\n"
66
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/waymark\n"
77
"POT-Creation-Date: 2024-01-18 00:24:31+00:00\n"
88
"PO-Revision-Date: 2024-01-23 10:19-0800\n"

languages/waymark-fr_CA.po

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# This file is distributed under the GPLv2.
33
msgid ""
44
msgstr ""
5-
"Project-Id-Version: Waymark 1.1.7\n"
5+
"Project-Id-Version: Waymark 1.1.8\n"
66
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/waymark\n"
77
"POT-Creation-Date: 2024-01-18 00:24:31+00:00\n"
88
"PO-Revision-Date: 2024-01-23 10:17-0800\n"

languages/waymark-ja_JP.po

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# This file is distributed under the GPLv2.
33
msgid ""
44
msgstr ""
5-
"Project-Id-Version: Waymark 1.1.7\n"
5+
"Project-Id-Version: Waymark 1.1.8\n"
66
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/waymark\n"
77
"POT-Creation-Date: 2024-01-23 14:32:30+00:00\n"
88
"PO-Revision-Date: 2024-01-23 10:42-0800\n"

languages/waymark-sv_SE.po

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# This file is distributed under the GPLv2.
33
msgid ""
44
msgstr ""
5-
"Project-Id-Version: Waymark 1.1.7\n"
5+
"Project-Id-Version: Waymark 1.1.8\n"
66
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/waymark\n"
77
"POT-Creation-Date: 2024-01-18 00:24:31+00:00\n"
88
"PO-Revision-Date: 2024-01-23 10:18-0800\n"

languages/waymark-uk_UA.po

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# This file is distributed under the GPLv2.
33
msgid ""
44
msgstr ""
5-
"Project-Id-Version: Waymark 1.1.7\n"
5+
"Project-Id-Version: Waymark 1.1.8\n"
66
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/waymark\n"
77
"POT-Creation-Date: 2024-01-18 00:24:31+00:00\n"
88
"PO-Revision-Date: 2024-01-23 10:18-0800\n"

languages/waymark-zh_CN.po

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# This file is distributed under the GPLv2.
33
msgid ""
44
msgstr ""
5-
"Project-Id-Version: Waymark 1.1.7\n"
5+
"Project-Id-Version: Waymark 1.1.8\n"
66
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/waymark\n"
77
"POT-Creation-Date: 2024-01-23 14:32:30+00:00\n"
88
"PO-Revision-Date: 2024-01-23 10:25-0800\n"

languages/waymark.pot

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# This file is distributed under the GPLv2.
33
msgid ""
44
msgstr ""
5-
"Project-Id-Version: Waymark 1.1.7\n"
5+
"Project-Id-Version: Waymark 1.1.8\n"
66
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/waymark\n"
77
"POT-Creation-Date: 2024-05-12 15:04:46+00:00\n"
88
"MIME-Version: 1.0\n"

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Waymark",
3-
"version": "1.1.7",
3+
"version": "1.1.8",
44
"description": "Waymark for WordPress",
55
"author": "Joe Hawes",
66
"main": "Gruntfile.js",

readme.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
**Requires at least:** 4.6
55
**Tested up to:** 6.5
66
**Requires PHP:** 5.2
7-
**Stable tag:** 1.1.7
7+
**Stable tag:** 1.1.8
88
**License:** GPLv2 or later
99
**License URI:** http://www.gnu.org/licenses/gpl-2.0.html
1010

@@ -188,6 +188,10 @@ Built on the shoulders of giants, [thank you](https://www.waymark.dev/docs/thank
188188

189189
## Changelog ##
190190

191+
### 1.1.8 ###
192+
193+
Show/Hide Overlay Types bug fix. Thanks to [YosoraLife](https://github.com/YosoraLife) for raising this [issue](https://github.com/OpenGIS/Waymark/issues/41).
194+
191195
### 1.1.7 ###
192196

193197
Another Collection Map link fix.

readme.txt

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Tags: GIS, Map maker, GPX, Track, Elevation
44
Requires at least: 4.6
55
Tested up to: 6.5
66
Requires PHP: 5.2
7-
Stable tag: 1.1.7
7+
Stable tag: 1.1.8
88
License: GPLv2 or later
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1010

@@ -170,6 +170,10 @@ Built on the shoulders of giants, [thank you](https://www.waymark.dev/docs/thank
170170

171171
== Changelog ==
172172

173+
= 1.1.8 =
174+
175+
Show/Hide Overlay Types bug fix. Thanks to [YosoraLife](https://github.com/YosoraLife) for raising this [issue](https://github.com/OpenGIS/Waymark/issues/41).
176+
173177
= 1.1.7 =
174178

175179
Another Collection Map link fix.

0 commit comments

Comments
 (0)