[wp-trac] [WordPress Trac] #15505: Excerpt is being double-escaped
WordPress Trac
wp-trac at lists.automattic.com
Fri Nov 19 22:14:10 UTC 2010
#15505: Excerpt is being double-escaped
----------------------------+-----------------------------------------------
Reporter: Viper007Bond | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.1
Component: Administration | Version: 3.1
Severity: normal | Keywords: has-patch
----------------------------+-----------------------------------------------
If you use HTML inside of the excerpt box in the admin area and then save
the post, it will show up in the textarea being double-escaped. This is
because `$post->post_excerpt` is already being escaped elsewhere
(`sanitize_post()` or whatever, I don't have time at the moment to track
it down).
The solution is to not use `esc_textarea()` in this particular case.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15505>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list