WordPress.org

Make WordPress Core

Ticket #8644: 8644_wpautop_fieldset_legend.diff

File 8644_wpautop_fieldset_legend.diff, 566 bytes (added by Sam_a, 5 years ago)

Adds FIELDSET and LEGEND to wpautop's list of HTML block elements

  • wp-includes/formatting.php

     
    117         $allblocks = '(?:table|thead|tfoot|caption|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|form|map|area|blockquote|address|math|style|input|p|h[1-6]|hr)'; 
     117        $allblocks = '(?:table|thead|tfoot|caption|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|fieldset|legend|form|map|area|blockquote|address|math|style|input|p|h[1-6]|hr)';