| @@ -38,9 +38,9 @@ | ||
| 38 | 38 | } |
| 39 | 39 | else |
| 40 | 40 | { |
| 41 | 41 | $api_key = get_option('propertyhive_google_maps_api_key'); |
| 42 | - wp_register_script('googlemaps', '//maps.googleapis.com/maps/api/js?' . ( ( $api_key != '' && $api_key !== FALSE ) ? 'key=' . $api_key : '' ), false, '3'); | |
| 42 | + wp_register_script('googlemaps', '//maps.googleapis.com/maps/api/js?' . ( ( $api_key != '' && $api_key !== FALSE ) ? 'key=' . $api_key : '' ), false, '3', true ); | |
| 43 | 43 | wp_enqueue_script('googlemaps'); |
| 44 | 44 | } |
| 45 | 45 | } |
| 46 | 46 | |
| @@ -103,8 +103,9 @@ | ||
| 103 | 103 | |
| 104 | 104 | // Add 'class' attribute to element root tag |
| 105 | 105 | $this->set_attribute( '_root', 'class', $root_classes ); |
| 106 | 106 | |
| 107 | + // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Bricks serializes registered attributes through its documented render_attributes() API. | |
| 107 | 108 | echo "<div {$this->render_attributes( '_root' )}>"; |
| 108 | 109 | |
| 109 | 110 | $attributes = array(); |
| 110 | 111 | if ( isset($this->settings['height']) && $this->settings['height'] != '' ) |
| @@ -123,5 +124,5 @@ | ||
| 123 | 124 | get_property_map($attributes); |
| 124 | 125 | |
| 125 | 126 | echo '</div>'; |
| 126 | 127 | } |
| 127 | -} | |
| 128 | +} | |