Ticket #5577: 5577.diff

File 5577.diff, 1.8 KB (added by mdawaffe, 4 years ago)
  • wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js

     
    244244 
    245245                                // Handle table badness. 
    246246                                content = content.replace(new RegExp('<(table( [^>]*)?)>.*?<((tr|thead)( [^>]*)?)>', 'mg'), '<$1><$3>'); 
    247                                 content = content.replace(new RegExp('<(tr|thead|tfoot)>.*?<((td|th)( [^>]*)?)>', 'mg'), '<$1><$2>'); 
     247                                content = content.replace(new RegExp('<((?:tr|thead|tfoot)(?: [^>]*)?)>.*?<((td|th)( [^>]*)?)>', 'mg'), '<$1><$2>'); 
    248248                                content = content.replace(new RegExp('</(td|th)>.*?<(td( [^>]*)?|th( [^>]*)?|/tr|/thead|/tfoot)>', 'mg'), '</$1><$2>'); 
    249                                 content = content.replace(new RegExp('</tr>.*?<(tr|/table)>', 'mg'), '</tr><$1>'); 
     249                                content = content.replace(new RegExp('</tr>.*?<(tr( [^>]*)?|/table)>', 'mg'), '</tr><$1>'); 
    250250                                content = content.replace(new RegExp('<(/?(table|tbody|tr|th|td)[^>]*)>(\\s*|(<br ?/?>)*)*', 'g'), '<$1>'); 
    251251 
    252252                                // Pretty it up for the source editor. 
  • wp-includes/script-loader.php

     
    3030 
    3131                $this->add( 'colorpicker', '/wp-includes/js/colorpicker.js', false, '3517' ); 
    3232 
    33                 $this->add( 'tiny_mce', '/wp-includes/js/tinymce/tiny_mce_gzip.php', false, '20070528' ); 
     33                // Modify this version when tinyMCE plugins are changed 
     34                $this->add( 'tiny_mce', '/wp-includes/js/tinymce/tiny_mce_gzip.php', false, '20080103' ); 
     35 
    3436                $mce_config = apply_filters('tiny_mce_config_url', '/wp-includes/js/tinymce/tiny_mce_config.php'); 
    3537                $this->add( 'wp_tiny_mce', $mce_config, array('tiny_mce'), '20070528' ); 
    3638