• Hello,

    To help with caching, would you please be able to add the Leaflet JS version to the enqueue statements on lines 190 and 191 of class.leaflet-map.php … ?

            wp_register_style('leaflet_stylesheet', $css_url, Array(), Leaflet_Map::$leaflet_version, false);
            wp_register_script('leaflet_js', $js_url, Array(), Leaflet_Map::$leaflet_version, true);

    Ideally Leaflet_Map::$leaflet_version would be filtered wherever it is used in order to be able to programatically match the version with the URL (when changed) but I realise this is a larger request … ?

    apply_filters('leaflet_version', Leaflet_Map::$leaflet_version)

    Thank you,

    Oliver

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add Leaflet Version to Enqueue Commands’ is closed to new replies.