Conflict with Event Organiser Venue Markers & WP3.8
-
Hi,
A someone using the Event Organiser Venue Markers reported a conflict between that plug-in and Page Google Maps.
Testing it seems that this occurs only 3.8 or 3.8.1 (3.7, for instance I found no conflict). I’ve not looked into why there’s that discrepancy but I suspect that perhaps WordPress updated the backbone/underscore libraries(?).
In any case the error is because both Page Google Maps and WordPress both load Backbone/Underscore. The Backbone/Underscore libraries have been bundled with WordPress since 3.5 – so fixing the conflict is just a matter of using the WordPress versions as a dependency rather than the plug-in’s versions if WP3.5+ is being run (assuming you want to maintain compatibility with WP3.4 and earlier).
Also (and this would probably also fix the conflict) Page Google Maps loads its admin scripts on every admin page – if you conditionally loaded it on the admin pages where it was needed, that would also avoid other conflicts. (Using
get_current_screen()
is useful for that: https://codex.www.ads-software.com/Function_Reference/get_current_screen).As for the user with the conflict, I told him to comment out the dependencies (lines 214/215 of
page-google-maps.php
) and then add ‘backbone’ and ‘underscore’ as dependencies inpgm-resource-loader.php
: https://wp-event-organiser.com/forums/topic/venue-markers-custom-markers-for-google-maps/#post-9562Many thanks!
- The topic ‘Conflict with Event Organiser Venue Markers & WP3.8’ is closed to new replies.