← All changes
|
includes/bricks-builder-widgets/property-street-view.php
+3
-2
2.2.6
→
2.4.0
View file →
| @@ -32,9 +32,9 @@ | ||
| 32 | 32 | } |
| 33 | 33 | else |
| 34 | 34 | { |
| 35 | 35 | $api_key = get_option('propertyhive_google_maps_api_key'); |
| 36 | - wp_register_script('googlemaps', '//maps.googleapis.com/maps/api/js?' . ( ( $api_key != '' && $api_key !== FALSE ) ? 'key=' . $api_key : '' ), false, '3'); | |
| 36 | + wp_register_script('googlemaps', '//maps.googleapis.com/maps/api/js?' . ( ( $api_key != '' && $api_key !== FALSE ) ? 'key=' . $api_key : '' ), false, '3', true ); | |
| 37 | 37 | wp_enqueue_script('googlemaps'); |
| 38 | 38 | } |
| 39 | 39 | } |
| 40 | 40 | |
| @@ -80,8 +80,9 @@ | ||
| 80 | 80 | |
| 81 | 81 | // Add 'class' attribute to element root tag |
| 82 | 82 | $this->set_attribute( '_root', 'class', $root_classes ); |
| 83 | 83 | |
| 84 | + // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Bricks serializes registered attributes through its documented render_attributes() API. | |
| 84 | 85 | echo "<div {$this->render_attributes( '_root' )}>"; |
| 85 | 86 | |
| 86 | 87 | $attributes = array(); |
| 87 | 88 | if ( isset($this->settings['height']) && $this->settings['height'] != '' ) |
| @@ -92,5 +93,5 @@ | ||
| 92 | 93 | get_property_street_view($attributes); |
| 93 | 94 | |
| 94 | 95 | echo '</div>'; |
| 95 | 96 | } |
| 96 | -} | |
| 97 | +} | |