[wp-trac] [WordPress Trac] #38679: REST API: Media `caption` and `description` should have rendered/raw properties
WordPress Trac
noreply at wordpress.org
Sat Nov 5 05:28:42 UTC 2016
#38679: REST API: Media `caption` and `description` should have rendered/raw
properties
--------------------------+-----------------------------
Reporter: jnylen0 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: trunk
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38679>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list