#9668 closed defect (bug) (invalid)
<li> problem in widget control
Reported by: | petervanderdoes | Owned by: | 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)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Result of adding