Skip to content

Commit c29916b

Browse files
committed
Coderingsfix voor locatienaam
1 parent c359b6a commit c29916b

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

plugins/gh-datainmap/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
- Coderingsfix voor locatienaam. HTML entities werden bijvoorbeeld getoond in het overzicht met gevonden locaties. Dit is nu opgelost.
2+
13
**1.9.1 (2021-02-25)**
24

35
- De locatietypes en -eigenschappen waren niet beschikbaar in Gutenberg. Dit is nu opgelost.

plugins/gh-datainmap/includes/utils.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ function gh_dim_get_location_layer($term) {
7272
$location = get_post_meta( $post->ID, '_gh_dim_location', true);
7373
$location_type = get_post_meta( $post->ID, '_gh_dim_location_type', true);
7474
$content_type = get_post_meta( $post->ID, '_gh_dim_location_content_type', true);
75-
$title = get_the_title( $post );
7675
$useAlternativeTitle = get_post_meta( $post->ID, '_gh_dim_location_alternative_title', true ) == 1;
7776
$alternativeTitle = get_post_meta( $post->ID, '_gh_dim_location_alternative_title_text', true);
7877
if($useAlternativeTitle && strlen($alternativeTitle) > 0) {
@@ -84,7 +83,7 @@ function gh_dim_get_location_layer($term) {
8483
'location' => json_decode($location),
8584
'location_properties' => $location_properties,
8685
'feature_id' => $post->ID,
87-
'title' => $title,
86+
'title' => $post->post_title,
8887
'term' => $term->slug,
8988
'content_type' => $content_type_enum,
9089
];

0 commit comments

Comments
 (0)