Closed mathetos closed 6 years ago
@matheos this is exactly the bug I've told you in my support request, so no reason for you to add another issue.
Perfect. Thanks for the confirmation @TobiasMalikowski
@mathetos Just wanted to create a pull request with a bug fix for this, then I mentioned there is no Github repository for the pro version. So I'll post the fix here since its a one liner. Is this the prevered way of submitting a bug fix for the pro version?
File: google-maps-builder-pro/includes/admin/mashups/class-mashups-builder.php Line 527: (maybe the line is not on point, since I already have another fix (#249) in this file. WordPress Reference: https://codex.wordpress.org/Class_Reference/WP_Query#Status_Parameters
Original code:
$args = array(
'post_type' => $post_type,
'posts_per_page' => - 1
);
Code which fixes the issue:
$args = array(
'post_type' => $post_type,
'post_status' => 'publish',
'posts_per_page' => - 1
);
Please merge this into the next release. Thanks.
@kevinwhoffman , This issue is fixed in https://github.com/WordImpress/Maps-Builder-Pro/issues/106
@mathetos commented on Fri Mar 25 2016
Scenario:
Problem:
Most likely our mashup isn't checking for the post status before populating the markers. It should and the marker should be removed from the map if the post status changes.