[wp-trac] [WordPress Trac] #25700: Images with Captions

WordPress Trac noreply at wordpress.org
Fri Oct 25 18:47:21 UTC 2013


#25700: Images with Captions
--------------------------+------------------------------
 Reporter:  WPRanger      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  TinyMCE       |     Version:  3.7
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by LucP):

 This patch should fix the problem. Every variable in that html-string gets
 generated before it gets mixed with the html, I think it's a lot cleaner
 to do it like this.

 {{{

         w = parseInt( w ) + 10;

         return '<div class="'+div_cls+'"><dl id="'+id+'" class="wp-caption
 '+cls+'" style="width: '+w+
         'px"><dt class="wp-caption-dt">'+img+'</dt><dd class="wp-caption-
 dd">'+cap+'</dd></dl></div>';

 }}}

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


More information about the wp-trac mailing list