Ticket #18445: 18445.diff
File 18445.diff, 737 bytes (added by , 13 years ago) |
---|
-
wp-admin/includes/media.php
1655 1655 1656 1656 html = '<img alt="'+alt+'" src="'+f.src.value+'"'+title+cls+' width="'+t.width+'" height="'+t.height+'" />'; 1657 1657 1658 if ( f.url.value ) 1659 html = '<a href="'+f.url.value+'">'+html+'</a>'; 1658 if ( f.url.value ) { 1659 url = f.url.value.replace(/'/g, ''').replace(/"/g, '"').replace(/</g, '<').replace(/>/g, '>'); 1660 html = '<a href="'+url+'">'+html+'</a>'; 1661 } 1660 1662 1661 1663 if ( caption ) 1662 1664 html = '[caption id="" align="'+t.align+'" width="'+t.width+'" caption="'+caption+'"]'+html+'[/caption]';