Make WordPress Core

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#9668 closed defect (bug) (invalid)

<li> problem in widget control

Reported by: petervanderdoes's profile petervanderdoes Owned by: azaozz's profile azaozz
Milestone: Priority: normal
Severity: normal Version: 2.7.1
Component: JavaScript Keywords: widget.js
Focuses: Cc:

Description

When the control function of a widget has <li> </li> in the source, the adding to the side bar messes up.

As an example I added two <li> options to Akismet.
<p><label for="akismet-title"><?php _e('Titles:'); ?> <input style="width: 250px;" id="akismet-title" name="akismet-title" type="text" value="<?php echo $title; ?>" /></label></p>
<li> Item 1</li>
<li> item 2</li>
<input type="hidden" id="akismet-submit" name="akismet-submit" value="1" />

The result when you add the widget to the sidebar can be seen in the attached picture.

The problem lays in wp-admin/js/widgets.js
I attached a patch to solve the problem.

Attachments (2)

widget-bug.png (5.6 KB) - added by petervanderdoes 15 years ago.
Result of adding
patch-#9668.diff (520 bytes) - added by petervanderdoes 15 years ago.
Patch to solve the problem

Download all attachments as: .zip

Change History (4)

@petervanderdoes
15 years ago

Result of adding

@petervanderdoes
15 years ago

Patch to solve the problem

#1 @azaozz
15 years ago

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

This code (and the problem) is gone in 2.8.

#2 @Denis-de-Bernardy
15 years ago

  • Milestone Unassigned deleted
Note: See TracTickets for help on using tickets.