Skip to content

Commit a0f6452

Browse files
authored
Upgraded mapbox-gl and mapbox-gl-draw
1 parent 4ab31dd commit a0f6452

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cmb2-mapbox.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Plugin Name: CMB2 Mapbox
44
Plugin URI:
55
Description: This plugin adds a new CMB2 fieldtype for adding a single point to a Mapbox map. This plugin requires CMB2 and a Mapbox access token.
6-
Version: 1.0.1
6+
Version: 1.0.2
77
Author: Rob Clark
88
Author URI: https://robclark.io
99
License: GPLv2 or later
@@ -59,11 +59,11 @@ function cmb2_mapbox_options_metabox() {
5959

6060

6161
function cmb2_mapbox_scripts() {
62-
wp_enqueue_style( 'mapbox-gl', 'https://api.mapbox.com/mapbox-gl-js/v2.1.0/mapbox-gl.css', array(), null );
63-
wp_enqueue_script( 'mapbox-gl', 'https://api.mapbox.com/mapbox-gl-js/v2.1.0/mapbox-gl.js', array(), null );
62+
wp_enqueue_style( 'mapbox-gl', 'https://api.mapbox.com/mapbox-gl-js/v2.1.1/mapbox-gl.css', array(), null );
63+
wp_enqueue_script( 'mapbox-gl', 'https://api.mapbox.com/mapbox-gl-js/v2.1.1/mapbox-gl.js', array(), null );
6464
if ( is_admin() ) {
65-
wp_enqueue_style( 'mapbox-gl-draw', 'https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-draw/v1.2.0/mapbox-gl-draw.css', array(), null );
66-
wp_enqueue_script( 'mapbox-gl-draw', 'https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-draw/v1.2.0/mapbox-gl-draw.js', array( 'mapbox-gl' ), null );
65+
wp_enqueue_style( 'mapbox-gl-draw', 'https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-draw/v1.2.2/mapbox-gl-draw.css', array(), null );
66+
wp_enqueue_script( 'mapbox-gl-draw', 'https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-draw/v1.2.2/mapbox-gl-draw.js', array( 'mapbox-gl' ), null );
6767
}
6868
}
6969

0 commit comments

Comments
 (0)