Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.4/wp-includes/js/tinymce/plugins/wpeditimage/editor_plugin_src.js

    r20679 r21274  
    143143
    144144                id = b.match(/id=['"]([^'"]*)['"] ?/);
    145                 b = b.replace(id[0], '');
     145                if ( id )
     146                    b = b.replace(id[0], '');
    146147
    147148                cls = b.match(/align=['"]([^'"]*)['"] ?/);
    148                 b = b.replace(cls[0], '');
     149                if ( cls )
     150                    b = b.replace(cls[0], '');
    149151
    150152                w = b.match(/width=['"]([0-9]*)['"] ?/);
    151                 b = b.replace(w[0], '');
     153                if ( w )
     154                    b = b.replace(w[0], '');
    152155
    153156                c = trim(c);
Note: See TracChangeset for help on using the changeset viewer.