[wp-trac] Re: [WordPress Trac] #9935: Quick editor for comments converts encoded HTML entities back into plain form

WordPress Trac wp-trac at lists.automattic.com
Wed Jun 3 11:15:49 GMT 2009


#9935: Quick editor for comments converts encoded HTML entities back into plain
form
---------------------------+------------------------------------------------
  Reporter:  michaeltyson  |        Type:  defect (bug)                                                       
    Status:  reopened      |    Priority:  normal                                                             
 Milestone:  2.8           |   Component:  Comments                                                           
   Version:  2.7.1         |    Severity:  minor                                                              
Resolution:                |    Keywords:  has-patch comments quick edit html entities encode htmlspecialchars
---------------------------+------------------------------------------------
Changes (by hakre):

  * keywords:  needs-patch comments quick edit html entities encode
               htmlspecialchars => has-patch comments quick
               edit html entities encode htmlspecialchars


Comment:

 First patch attached. This is a workaround for the bogus behavior in the
 backend using the same function-set that the standard comment editor is
 using. It uses it for both: display and quickedit.

 This is a workaround only. Frontend is not touched. Frontend would at
 least need another default filter for ''comment_text''. If that is
 patched, then the first patch must be looked into again because it still
 uses comment_text() to display the comment in function
 ''_wp_comment_row()'' in ''wp-admin/includes/template.php'' .

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/9935#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list