Make WordPress Core

Opened 16 years ago

Closed 16 years ago

#14065 closed defect (bug) (invalid)

textwidget adds paragraph outside of div

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

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
16 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
16 years ago

  • Resolutionfixed
  • Status newclosed

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
16 years ago

  • Resolution fixed
  • Status closedreopened

#4 @nacin
16 years ago

  • Milestone Unassigned
  • Resolutioninvalid
  • Status reopenedclosed
Note: See TracTickets for help on using tickets.