WordPress.org

Make WordPress Core

Opened 4 years ago

Last modified 14 months ago

#19587 closed enhancement

WordPress widget admin bug — at Version 1

Reported by: ciprian_vb Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Widgets Keywords:
Focuses: Cc:

Description (last modified by SergeyBiryukov)

Hi,
When a new widget is added to the sidebar, the javascript does not load for that widget. for example, if I just installed a plugin like iCalendar Events Widget or live countdown timer (bare with me, it's not the plugin that's faulty and I'll tell you why) and after installation I want to add it to the sidebar, I go to the widgets area under prefferences and drag and drop it.

The bug is this: untill I refresh the page, the jquery won't work for anything in that widget. Both of the plugins mentioned above have a datepicker (from jquery-ui-core) popup that shows once a textbox or button is clicked. if the widget has just been added, the jquery that's supposed to run and show the calendars does not work until the page is refreshed.

I received a "not working" status because of this and people complained that my plugin (live countdown timer) is broken. On further investigation, I found out that it was because WordPress is not loading the javascript when first adding the widget in the sidebar and a refresh is required.

Change History (1)

comment:1 @SergeyBiryukov4 years ago

  • Description modified (diff)
  • Summary changed from Wordpress widget admin bug to WordPress widget admin bug
Note: See TracTickets for help on using tickets.