Make WordPress Core

Opened 18 years ago

Closed 17 years ago

Last modified 12 years ago

#3054 closed enhancement (fixed)

input Element Should Be Spared From wpautop()

Reported by: gamerz's profile GamerZ Owned by:
Milestone: 2.1 Priority: low
Severity: trivial Version: 2.1
Component: Template Keywords: input
Focuses: Cc:


There is quite a number of html elements spared in wpautop() function, I think input element should be spared too since form element is spared.


preg_replace('!(<(?:table|thead|tfoot|caption|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|form|blockquote|address|math|p|h[1-6]|input)[^>]*>)!', "\n$1", $pee);

Change History (3)

#1 @Viper007Bond
18 years ago

I'd be happy to see <param> and <script> spared too. People have been using some PHP include plugins to load my plugins into their pages and it's laying waste to it's output with <br />'s.

#2 @ryan
17 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [4553]) Spare input, param, and script from autop. fixes #3054

#3 @nacin
12 years ago

input is an inline element. see #16456.

Note: See TracTickets for help on using tickets.