[wp-trac] [WordPress Trac] #38609: REST API should honor the `unfiltered_html` capability

WordPress Trac noreply at wordpress.org
Sat Nov 5 05:56:59 UTC 2016


#38609: REST API should honor the `unfiltered_html` capability
--------------------------+--------------------
 Reporter:  jnylen0       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.7
Component:  REST API      |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+--------------------

Comment (by jnylen0):

 In `38609.2.diff`:

 - Simplify test harness and test rendered content also
 - Add tests for attachments

 This patch *includes*
 https://core.trac.wordpress.org/attachment/ticket/38679/38679.diff because
 they are closely related.  Adding tests for attachments here surfaced the
 issue in #38679, which I think should be patched separately.

 There are a couple of "TODO" / "FIXME" comments in the tests.  Right now,
 the rendered `description` for media items includes the `<p
 class="attachment">` tag containing the attachment content itself.
 Perhaps the filters we apply to attachment description should be tweaked,
 and this should show up in the `content` property instead?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38609#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list