[SOLVED] No widgets in the dropdown
-
Hi,
I think I solved everyone’s problem, the empty dropdown.
The \wp-content\plugins\widget-instance\js\wysiwyg.js has problem when AJAX sends back the widget title as empty or NULL. If null, the title’s length can not be queried, so your script fails, and the javascript execution stops.
Change line 18 as following, remove the length attribute. In this context, it is enough to test if widget.title is true-ish, no need to ask for its length. Here is my diff before/after, with the removed .length:
- var ti = (widget.title.length) ? ' (' + widget.title + ')' : '' ; + var ti = (widget.title) ? ' (' + widget.title + ')' : '' ;
I made this modification in the plugin, then all the widgets appeared (before there was none in the dropdown).
I suggest, the plugin author should provide this fix in the next update.Regards,
Immánuel
- The topic ‘[SOLVED] No widgets in the dropdown’ is closed to new replies.