[wp-trac] [WordPress Trac] #9668: <li> problem in widget control
WordPress Trac
wp-trac at lists.automattic.com
Tue Apr 28 14:57:57 GMT 2009
#9668: <li> problem in widget control
-----------------------------+----------------------------------------------
Reporter: petervanderdoes | Owner: azaozz
Type: defect (bug) | Status: new
Priority: normal | Milestone: Unassigned
Component: JavaScript | Version: 2.7.1
Severity: normal | Keywords: widget.js
-----------------------------+----------------------------------------------
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.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9668>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list