Skip to content

Commit

Permalink
Remove current_post from localized data
Browse files Browse the repository at this point in the history
After testing the `gmb_localized_data`, there's no need for this to be included in every map's data. If a developer needs access to the current post ID, they can use `get_the_ID()` within the filter callback.
  • Loading branch information
kevinwhoffman committed Jul 10, 2017
1 parent be9ed31 commit e181a9c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion includes/class-gmb-engine.php
Expand Up @@ -101,7 +101,6 @@ public function google_maps_shortcode( $atts ) {
'search_places' => ! empty( $all_meta['gmb_places_search_multicheckbox'][0] ) ? maybe_unserialize( $all_meta['gmb_places_search_multicheckbox'][0] ) : '',
),
'map_markers_icon' => ! empty( $all_meta['gmb_map_marker'] ) ? $all_meta['gmb_map_marker'][0] : 'none',
'current_post' => get_the_ID(),
)
) );

Expand Down

0 comments on commit e181a9c

Please sign in to comment.