[wp-trac] [WordPress Trac] #38609: REST API should honor the `unfiltered_html` capability
WordPress Trac
noreply at wordpress.org
Thu Nov 3 01:28:54 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):
It looks to me like @westonruter's patch will pretty much fix all the
things here, with some minor tweaks.
In `38609.1.diff`:
- Fix creating posts by calling `wp_slash( (array) $post )` instead of
`wp_slash( $post )`
- Add a bunch of tests for creating and updating posts with the nastiest
HTML I could think of
In trunk, 10/12 of these new tests fail (8/12 in multisite mode). With
this patch, they all pass in both modes.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38609#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list