|
@@ -48,8 +48,8 @@ discard block |
|
|
block discarded – undo |
|
48
|
48
|
*/ |
|
49
|
49
|
static function geocoder() { |
|
50
|
50
|
|
|
51
|
|
- if ( ! isset( static::$_geocoder ) ) { |
|
52
|
|
- static::$_geocoder = new Geocoder( ['api_key' => self::api_key() ] ); |
|
|
51
|
+ if ( !isset(static::$_geocoder) ) { |
|
|
52
|
+ static::$_geocoder = new Geocoder( ['api_key' => self::api_key()] ); |
|
53
|
53
|
} |
|
54
|
54
|
|
|
55
|
55
|
return static::$_geocoder; |
|
@@ -94,10 +94,10 @@ discard block |
|
|
block discarded – undo |
|
94
|
94
|
$source = home_url( '/vendor/clubdeuce/wplib-olm-google-maps/assets/maps.js' ); |
|
95
|
95
|
} |
|
96
|
96
|
|
|
97
|
|
- wp_register_script('google-maps', "https://maps.google.com/maps/api/js?v=3&key={$key}", false, '3.0', true ); |
|
98
|
|
- wp_register_script('map-control', $source, array( 'jquery', 'google-maps' ), '0.1.2', true ); |
|
|
97
|
+ wp_register_script( 'google-maps', "https://maps.google.com/maps/api/js?v=3&key={$key}", false, '3.0', true ); |
|
|
98
|
+ wp_register_script( 'map-control', $source, array( 'jquery', 'google-maps' ), '0.1.2', true ); |
|
99
|
99
|
|
|
100
|
|
- array_walk(static::$_script_conditions, function( $function ) { |
|
|
100
|
+ array_walk( static::$_script_conditions, function( $function ) { |
|
101
|
101
|
return is_callable( $function ) ? call_user_func( $function ) : $function; |
|
102
|
102
|
} ); |
|
103
|
103
|
|