[wp-trac] [WordPress Trac] #15694: Caption Shortcode I/O Intolerant of "]" Char

WordPress Trac wp-trac at lists.automattic.com
Sun Dec 5 20:54:31 UTC 2010


#15694: Caption Shortcode I/O Intolerant of "]" Char
--------------------------+-------------------------------------------------
 Reporter:  miqrogroove   |       Owner:                 
     Type:  defect (bug)  |      Status:  new            
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Shortcodes    |     Version:  3.0.1          
 Severity:  normal        |    Keywords:                 
--------------------------+-------------------------------------------------
 I've discovered that the "]" character can only be used in the media
 library itself.  If I try to insert an image into a post using a caption
 like "[Test Caption]" then the post editor inserts three double quotes
 into the HTML attribute, invalidating the page markup.  D:

 {{{
 [caption id="attachment_3" align="alignnone" width="300" caption="[Test
 Caption"]"]
 }}}

 In testing the output end of things, if I remove the extra double quote
 directly in MySQL, then the caption is not rendered at all on the post.
 This suggests there is more than one error in the code that is causing
 this problem.  I was able to reproduce these symptoms on both versions I
 tested, 2.9.2 and 3.0.1.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15694>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list