#38679 closed defect (bug) (fixed)
REST API: Media `caption` and `description` should have rendered/raw properties
Reported by: | jnylen0 | Owned by: | rmccue |
---|---|---|---|
Milestone: | 4.7 | Priority: | normal |
Severity: | normal | Version: | 4.7 |
Component: | REST API | Keywords: | has-patch has-unit-tests |
Focuses: | Cc: |
Description
Previously discussed at https://github.com/WP-API/WP-API/pull/2298, but I believe the decision there is incorrect: attachments have a post page just like posts, and wpautop
and other rendering filters are applied on this page. So we need to handle "content" (description) and "excerpt" (caption) the same way for attachments.
Props @miyauchi for getting this patch started.
Attachments (1)
Change History (7)
This ticket was mentioned in Slack in #core-restapi by jnylen. View the logs.
8 years ago
#4
@
8 years ago
- Milestone changed from Awaiting Review to 4.7
- Owner set to rmccue
- Status changed from new to assigned
This ticket was mentioned in Slack in #core by jnylen. View the logs.
8 years ago
Note: See
TracTickets for help on using
tickets.
Also relevant here: https://core.trac.wordpress.org/ticket/38609#comment:9