WordPress.org

Make WordPress Core

Opened 15 years ago

Closed 15 years ago

Last modified 10 years ago

#3054 closed enhancement (fixed)

input Element Should Be Spared From wpautop()

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

Description

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.

Example:

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
15 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
15 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
10 years ago

input is an inline element. see #16456.

Note: See TracTickets for help on using tickets.