[wp-trac] [WordPress Trac] #21613: format_to_edit runs esc_textarea if $richedit param is set to false, not true

WordPress Trac noreply at wordpress.org
Thu Oct 1 02:00:44 UTC 2015


#21613: format_to_edit runs esc_textarea if $richedit param is set to false, not
true
-------------------------+---------------------------
 Reporter:  vhauri       |       Owner:  DrewAPicture
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  4.4
Component:  Formatting   |     Version:
 Severity:  normal       |  Resolution:  fixed
 Keywords:               |     Focuses:
-------------------------+---------------------------
Changes (by DrewAPicture):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"34727"]:
 {{{
 #!CommitTicketReference repository="" revision="34727"
 Formatting: Rename the `$richedit` parameter in `format_to_edit()` to
 `$rich_text`.

 Previously, it was necessary to explain in a double-negative that
 `$richedit` being false would prevent `$content` from being passed through
 `esc_textarea()`. The updated `$rich_edit` name and documentation now
 better reflects the intent of the parameter.

 Fixes #21613.
 }}}

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


More information about the wp-trac mailing list