[wp-trac] [WordPress Trac] #21613: format_to_edit runs esc_textarea if $richedit param is set to false, not true
WordPress Trac
wp-trac at lists.automattic.com
Thu Aug 16 20:10:37 UTC 2012
#21613: format_to_edit runs esc_textarea if $richedit param is set to false, not
true
--------------------------+------------------------------
Reporter: vhauri | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: minor | Resolution:
Keywords: has-patch |
--------------------------+------------------------------
Comment (by SergeyBiryukov):
> Currently, the docs on format_to_edit() indicate that it runs the
content through esc_textarea (which in turn runs htmlspecialchars() ) if
the $richedit param is set to true.
The docs actually say that `htmlspecialchars()` will be applied if
`$richedit` is false: [[BR]]
http://core.trac.wordpress.org/browser/tags/3.4.1/wp-
includes/formatting.php#L1256
Current behaviour appears to be proper.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21613#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list