Make WordPress Core

Changeset 28615


Ignore:
Timestamp:
05/29/2014 07:55:17 AM (10 years ago)
Author:
azaozz
Message:

Regex should be non-greedy, see #28389

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js

    r28614 r28615  
    946946    // Remove toolbar from undo levels
    947947    editor.on( 'BeforeAddUndo', function( event ) {
    948         event.level.content = event.level.content.replace( /<p [^>]*data-mce-bogus[^>]+>[\s\S]*<\/p>/g, '' );
     948        event.level.content = event.level.content.replace( /<p [^>]*data-mce-bogus[^>]+>[\s\S]*?<\/p>/g, '' );
    949949    });
    950950
Note: See TracChangeset for help on using the changeset viewer.