| @@ -499,25 +499,5 @@ | ||
| 499 | 499 | ?> |
| 500 | 500 | </div> |
| 501 | 501 | <?php |
| 502 | 502 | } |
| 503 | - | |
| 504 | - public function render_markdown(): string { | |
| 505 | - $settings = $this->get_settings_for_display(); | |
| 506 | - if ( empty( $settings['wp_gallery'] ) ) { | |
| 507 | - return ''; | |
| 508 | - } | |
| 509 | - $images = []; | |
| 510 | - foreach ( $settings['wp_gallery'] as $image ) { | |
| 511 | - $url = $image['url'] ?? ''; | |
| 512 | - if ( empty( $url ) ) { | |
| 513 | - continue; | |
| 514 | - } | |
| 515 | - $alt = ''; | |
| 516 | - if ( ! empty( $image['id'] ) ) { | |
| 517 | - $alt = get_post_meta( $image['id'], '_wp_attachment_image_alt', true ); | |
| 518 | - } | |
| 519 | - $images[] = ' . ')'; | |
| 520 | - } | |
| 521 | - return implode( "\n\n", $images ); | |
| 522 | - } | |
| 523 | 503 | } |