| @@ -105,12 +105,8 @@ | ||
| 105 | 105 | public function get_style_depends(): array { |
| 106 | 106 | return [ 'widget-google_maps' ]; |
| 107 | 107 | } |
| 108 | 108 | |
| 109 | - public function has_widget_inner_wrapper(): bool { | |
| 110 | - return ! Plugin::$instance->experiments->is_feature_active( 'e_optimized_markup' ); | |
| 111 | - } | |
| 112 | - | |
| 113 | 109 | /** |
| 114 | 110 | * Register google maps widget controls. |
| 115 | 111 | * |
| 116 | 112 | * Adds different input fields to allow the user to change and customize the widget settings. |
| @@ -324,14 +320,5 @@ | ||
| 324 | 320 | * @since 2.9.0 |
| 325 | 321 | * @access protected |
| 326 | 322 | */ |
| 327 | 323 | protected function content_template() {} |
| 328 | - | |
| 329 | - public function render_markdown(): string { | |
| 330 | - $settings = $this->get_settings_for_display(); | |
| 331 | - $address = Utils::html_to_plain_text( $settings['address'] ?? '' ); | |
| 332 | - if ( empty( $address ) ) { | |
| 333 | - return ''; | |
| 334 | - } | |
| 335 | - return '[Map: ' . $address . '](https://maps.google.com/maps?q=' . rawurlencode( $address ) . ')'; | |
| 336 | - } | |
| 337 | 324 | } |