Make WordPress Core

Changeset 23327


Ignore:
Timestamp:
01/22/2013 07:05:21 PM (12 years ago)
Author:
azaozz
Message:

Autop: <samp> is not a block tag, props toscho, fixes #18807

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/js/editor.js

    r22007 r23327  
    139139    _wp_Autop : function(pee) {
    140140        var preserve_linebreaks = false, preserve_br = false,
    141             blocklist = 'table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|option|form|map|area|blockquote|address|math|style|p|h[1-6]|hr|fieldset|noscript|samp|legend|section|article|aside|hgroup|header|footer|nav|figure|figcaption|details|menu|summary';
     141            blocklist = 'table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|option|form|map|area|blockquote|address|math|style|p|h[1-6]|hr|fieldset|noscript|legend|section|article|aside|hgroup|header|footer|nav|figure|figcaption|details|menu|summary';
    142142
    143143        if ( pee.indexOf('<object') != -1 ) {
  • trunk/wp-includes/formatting.php

    r23303 r23327  
    221221    $pee = preg_replace('|<br />\s*<br />|', "\n\n", $pee);
    222222    // Space things out a little
    223     $allblocks = '(?:table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|option|form|map|area|blockquote|address|math|style|p|h[1-6]|hr|fieldset|noscript|samp|legend|section|article|aside|hgroup|header|footer|nav|figure|figcaption|details|menu|summary)';
     223    $allblocks = '(?:table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|option|form|map|area|blockquote|address|math|style|p|h[1-6]|hr|fieldset|noscript|legend|section|article|aside|hgroup|header|footer|nav|figure|figcaption|details|menu|summary)';
    224224    $pee = preg_replace('!(<' . $allblocks . '[^>]*>)!', "\n$1", $pee);
    225225    $pee = preg_replace('!(</' . $allblocks . '>)!', "$1\n\n", $pee);
  • trunk/wp-includes/js/tinymce/wp-tinymce-schema.js

    r23222 r23327  
    442442                        'blockquote center dir fieldset header footer article section hgroup aside nav figure');
    443443        blockElementsMap = createLookupTable('block_elements', 'hr table tbody thead tfoot ' +
    444                         'th tr td li ol ul caption dl dt dd noscript menu isindex samp option datalist select optgroup', textBlockElementsMap);
     444                        'th tr td li ol ul caption dl dt dd noscript menu isindex option datalist select optgroup', textBlockElementsMap);
    445445
    446446        // Converts a wildcard expression string to a regexp for example *a will become /.*a/.
Note: See TracChangeset for help on using the changeset viewer.