[wp-trac] [WordPress Trac] #21448: unfiltered HTML comments from a frame js fix breaks js in windowed comments

WordPress Trac wp-trac at lists.automattic.com
Thu Aug 2 16:01:27 UTC 2012


#21448: unfiltered HTML comments from a frame js fix breaks js in windowed comments
-----------------------------------------+------------------------------
 Reporter:  nerrad                       |       Owner:
     Type:  defect (bug)                 |      Status:  new
 Priority:  normal                       |   Milestone:  Awaiting Review
Component:  Comments                     |     Version:  3.4.1
 Severity:  normal                       |  Resolution:
 Keywords:  has-patch reporter-feedback  |
-----------------------------------------+------------------------------

Comment (by nerrad):

 attached is a simple plugin that will help replicate this.

 The plugin:

 - loads colorbox
 - hooks into `the_content` to add a test link for initializing colorbox
 and the test in a post (view on single.php).
 - has some javascript for doing an ajax call that returns the contents of
 `do_action('comment_form');` which is what we're testing.

 Just use this plugin on the twenty-eleven theme (for testing purposes) and
 comment out `<?php comments_template( '', true ); ?>` in the single.php
 file of twentyeleven.

 To replicate after setting up the above.
 - while viewing single.php view of a post click on the "Click here for
 comment popup" link and javascript fails because of the null value.

 The plugin is just a quick and dirty mockup to replicate the bug.

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


More information about the wp-trac mailing list