| @@ -84,12 +84,8 @@ | ||
| 84 | 84 | protected function is_dynamic_content(): bool { |
| 85 | 85 | return false; |
| 86 | 86 | } |
| 87 | 87 | |
| 88 | - public function has_widget_inner_wrapper(): bool { | |
| 89 | - return ! Plugin::$instance->experiments->is_feature_active( 'e_optimized_markup' ); | |
| 90 | - } | |
| 91 | - | |
| 92 | 88 | /** |
| 93 | 89 | * Register audio widget controls. |
| 94 | 90 | * |
| 95 | 91 | * Adds different input fields to allow the user to change and customize the widget settings. |
| @@ -253,8 +249,9 @@ | ||
| 253 | 249 | ] |
| 254 | 250 | ); |
| 255 | 251 | |
| 256 | 252 | $this->end_controls_section(); |
| 253 | + | |
| 257 | 254 | } |
| 258 | 255 | |
| 259 | 256 | /** |
| 260 | 257 | * Render audio widget output on the frontend. |
| @@ -341,14 +338,5 @@ | ||
| 341 | 338 | * @since 2.9.0 |
| 342 | 339 | * @access protected |
| 343 | 340 | */ |
| 344 | 341 | protected function content_template() {} |
| 345 | - | |
| 346 | - public function render_markdown(): string { | |
| 347 | - $settings = $this->get_settings_for_display(); | |
| 348 | - $url = $settings['link']['url'] ?? ''; | |
| 349 | - if ( empty( $url ) ) { | |
| 350 | - return ''; | |
| 351 | - } | |
| 352 | - return '[Audio](' . esc_url( $url ) . ')'; | |
| 353 | - } | |
| 354 | 342 | } |