PluginProbe
OpenStation: Desktop Windows, Dock & Virtual Desktops for WP Admin / 1.1.12
OpenStation: Desktop Windows, Dock & Virtual Desktops for WP Admin v1.1.12
1.1.12 1.1.11 1.1.10 1.1.9 1.1.8 1.1.7 1.1.6 1.1.5 1.1.4 1.1.3 1.1.2 1.1.1 1.1.0 1.0.1 1.0.0 0.9.8 0.9.7 0.9.6 0.9.4 0.9.5 0.9.3 0.9.2 0.9.1 0.9.0 0.8.9 All 36 releases
← All changes | includes/desktop-files/media-library.php +2 -2 1.1.10 → 1.1.12 View file →
@@ -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,