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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 3 additions & 3 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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"

0 commit comments

Comments
 (0)