[wp-trac] [WordPress Trac] #39185: REST API Media end-point, "description" field changes with WP 4.7
WordPress Trac
noreply at wordpress.org
Sat Jan 7 20:44:38 UTC 2017
#39185: REST API Media end-point, "description" field changes with WP 4.7
--------------------------+------------------------------
Reporter: patchworkboy | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: 4.7
Severity: normal | Resolution:
Keywords: | Focuses: rest-api
--------------------------+------------------------------
Comment (by jnylen0):
Also, this is pretty easy to work around. This will get you just the
description in JavaScript:
`description.rendered.replace( /^<p class="attachment[^\n]+\n/, '' )`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39185#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list