Skip to content

Commit e069d6a

Browse files
committed
Updated mapbox libraries to use latest versions
1 parent f2be52c commit e069d6a

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.5.2
6+
* Version: 1.5.3
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.13.0/mapbox-gl.css', array(), null );
63-
wp_enqueue_script( 'mapbox-gl', 'https://api.mapbox.com/mapbox-gl-js/v2.13.0/mapbox-gl.js', array(), null );
62+
wp_enqueue_style( 'mapbox-gl', 'https://api.mapbox.com/mapbox-gl-js/v3.2.0/mapbox-gl.css', array(), null );
63+
wp_enqueue_script( 'mapbox-gl', 'https://api.mapbox.com/mapbox-gl-js/v3.2.0/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.4.1/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.4.1/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.4.3/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.4.3/mapbox-gl-draw.js', array( 'mapbox-gl' ), null );
6767
}
6868
}
6969

0 commit comments

Comments
 (0)