Make WordPress Core


Ignore:
Timestamp:
11/06/2012 11:23:03 PM (12 years ago)
Author:
nacin
Message:

Stop adding title attributes to images (in the old media uploader). props martythornley. fixes #18984.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/media.php

    r22367 r22409  
    15281528            return false;
    15291529
    1530         if ( f.title.value ) {
    1531             title = f.title.value.replace(/'/g, '&#039;').replace(/"/g, '&quot;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
    1532             title = ' title="'+title+'"';
    1533         }
    1534 
    15351530        if ( f.alt.value )
    15361531            alt = f.alt.value.replace(/'/g, '&#039;').replace(/"/g, '&quot;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
     
    15491544        cls = caption ? '' : ' class="'+t.align+'"';
    15501545
    1551         html = '<img alt="'+alt+'" src="'+f.src.value+'"'+title+cls+' width="'+t.width+'" height="'+t.height+'" />';
     1546        html = '<img alt="'+alt+'" src="'+f.src.value+'"'+cls+' width="'+t.width+'" height="'+t.height+'" />';
    15521547
    15531548        if ( f.url.value ) {
Note: See TracChangeset for help on using the changeset viewer.