Fix: Map is not loading during creating/editing a venue
This commit is contained in:
@@ -78,6 +78,7 @@ if ( ! class_exists( 'SportsPress_OpenStreetMap' ) ):
|
|||||||
if ( in_array( $screen->id, array( 'edit-sp_venue' ) ) ) {
|
if ( in_array( $screen->id, array( 'edit-sp_venue' ) ) ) {
|
||||||
wp_enqueue_script( 'leaflet_js' );
|
wp_enqueue_script( 'leaflet_js' );
|
||||||
wp_enqueue_script( 'control-geocoder' );
|
wp_enqueue_script( 'control-geocoder' );
|
||||||
|
wp_enqueue_script( 'sportspress-admin-geocoder' );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user