mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-05-25 13:44:30 +00:00
Remove select and input from wpautop()'s HTML blocks list.
props rachelbaker, DH-Shredder. fixes #22230. git-svn-id: https://develop.svn.wordpress.org/trunk@27761 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -203,8 +203,8 @@ window.switchEditors = {
|
||||
_wp_Autop: function(pee) {
|
||||
var preserve_linebreaks = false,
|
||||
preserve_br = false,
|
||||
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' +
|
||||
blocklist = 'table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre' +
|
||||
'|form|map|area|blockquote|address|math|style|p|h[1-6]|hr|fieldset|noscript|legend|section' +
|
||||
'|article|aside|hgroup|header|footer|nav|figure|details|menu|summary';
|
||||
|
||||
if ( pee.indexOf( '<object' ) !== -1 ) {
|
||||
|
||||
Reference in New Issue
Block a user