Make WordPress Core

Opened 15 years ago

Closed 15 years ago

#14065 closed defect (bug) (invalid)

textwidget adds paragraph outside of div

Reported by: jowo's profile jowo Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.0
Component: Widgets Keywords: reporter-feedback
Focuses: Cc:

Description

Using textwidget creates wrong HTML:

<p>
<div class="textwidget"><p>Text</p></div>
</p>

The outer paragraphs should not even be there.

Change History (4)

#1 @ocean90
15 years ago

  • Keywords reporter-feedback added

Which WordPress version and theme are you using? Plugins disabled?

I cannot reproduce it with trunk version and Twenty Ten.

#2 @jowo
15 years ago

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

I found out the issue. It was the theme that hardcoded:

	'before_widget' => '<p>',
	'after_widget' => '</p>',

into the register_sidebar.

I must stop using these badly coded themes...

#3 @nacin
15 years ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

#4 @nacin
15 years ago

  • Milestone Unassigned deleted
  • Resolution set to invalid
  • Status changed from reopened to closed
Note: See TracTickets for help on using tickets.