Hi there, I want to report an bug regarding get_mashup_markers_callback() also loading posts with the status of draft, future and pending.
Reason:
As you can see in the WordPress Codex if queries run in an admin context (administration area or AJAX call), protected statuses are added to the query. By default protected statuses are 'future', 'draft' and 'pending'.
Solution:
// class-gmb-mashups-builder.php on line 517
$args = array(
'post_type' => $post_type,
'posts_per_page' => - 1,
'post_status' => 'publish' // add this line to make sure only published posts are queried
);
Can you please look into this and add the fix to the core?
Hi there, I want to report an bug regarding get_mashup_markers_callback() also loading posts with the status of draft, future and pending.
Reason: As you can see in the WordPress Codex if queries run in an admin context (administration area or AJAX call), protected statuses are added to the query. By default protected statuses are 'future', 'draft' and 'pending'.
Solution:
Can you please look into this and add the fix to the core?
Thank you,
Tobias