[Plugin: SEO Friendly Images] plugin conflict: "SEO friendly images" breaks "Leaflet
-
Hi,
I am the developer of the mapping plugin “Leaflet Maps Marker” (https://www.mapsmarker.com). A user of my plugin just informed me that when the latest version of SEO friendly image-plugin is active, maps produced by my plugin are broken.
I could confirm this. This is due to the fact, that you add “un-slashed” double quotes to my javascript code which breaks it. To make it clear here an extract of the javascript produced by my plugin:
var mapquest_osm = new L.TileLayer("https://{s}.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.png", {maxZoom: 18, minZoom: 1, errorTileUrl: "https://current.mapsmarker.com/wp-content/plugins/leaflet-maps-marker/inc/img/error-tile-image.png", attribution: "Map: Tiles Courtesy of MapQuest <img src=\"https://current.mapsmarker.com/wp-content/plugins/leaflet-maps-marker/inc/img/logo-mapquest.png\" style=\"display:inline;\" /> (OpenStreetMap, CC-BY-SA)", subdomains: ["otile1","otile2","otile3","otile4"], detectRetina: true});
after activating SEO friendly images this becomes
var mapquest_osm = new L.TileLayer("https://{s}.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.png", {maxZoom: 18, minZoom: 1, errorTileUrl: "https://current.mapsmarker.com/wp-content/plugins/leaflet-maps-marker/inc/img/error-tile-image.png", attribution: "Map: Tiles Courtesy of MapQuest <img src=\"https://current.mapsmarker.com/wp-content/plugins/leaflet-maps-marker/inc/img/logo-mapquest.png\" style=\"display:inline;\" title="image test" alt=" image test" /> (OpenStreetMap, CC-BY-SA)", subdomains: ["otile1","otile2","otile3","otile4"], detectRetina: true});
the solution would be to add
title=\"image test\" alt=\" image test\"
instead of
title="image test" alt=" image test"
Could it be possible to change this in your plugin? Currently I dont know how to prevent your plugin adding this html-tags to my javascript code. I can only include your plugin in my built-in-compatibility-check and warn users that they cant use my plugin together with yours…
Any help is really appreciated!
regards,Robert
- The topic ‘[Plugin: SEO Friendly Images] plugin conflict: "SEO friendly images" breaks "Leaflet’ is closed to new replies.