| @@ -601,9 +601,9 @@ | ||
| 601 | 601 | $attachment_id = (int) $attachment_id; |
| 602 | 602 | return array( |
| 603 | 603 | 'attachmentId' => $attachment_id, |
| 604 | 604 | 'created' => (bool) $created, |
| 605 | - 'title' => get_the_title( $attachment_id ), | |
| 605 | + 'title' => openstation_plain_text_title( get_the_title( $attachment_id ) ), | |
| 606 | 606 | 'url' => (string) wp_get_attachment_url( $attachment_id ), |
| 607 | 607 | 'editUrl' => admin_url( sprintf( 'post.php?post=%d&action=edit', $attachment_id ) ), |
| 608 | 608 | ); |
| 609 | 609 | } |
| @@ -671,9 +671,9 @@ | ||
| 671 | 671 | } |
| 672 | 672 | return rest_ensure_response( |
| 673 | 673 | array( |
| 674 | 674 | 'postId' => (int) $result['post_id'], |
| 675 | - 'title' => get_the_title( $result['post_id'] ), | |
| 675 | + 'title' => openstation_plain_text_title( get_the_title( $result['post_id'] ) ), | |
| 676 | 676 | 'editUrl' => (string) $result['edit_url'], |
| 677 | 677 | 'appended' => (bool) $result['appended'], |
| 678 | 678 | 'featuredImageSet' => (bool) $result['featured_image_set'], |
| 679 | 679 | 'attachments' => $attachments, |