WordPress.org

Make WordPress Core

Opened 6 weeks ago

Last modified 6 weeks ago

#48004 assigned defect (bug)

JS error while Widget saving functionality

Reported by: prashantdu Owned by:
Milestone: Awaiting Review Priority: normal
Severity: critical Version: 5.2.3
Component: Widgets Keywords:
Focuses: ui, administration Cc:
PR Number:

Description

When I tried to update any existing widget and Save it then I am getting a JS error and because of that changes are not being saved.

Issue is with the ajaxurl variable used in a post ajax call in widgets.js (widgets.min.js) in Save function.

This variable is holding the object and not a string (ideally string containing the url).

While inspect in Network,
ajax url looks like, http://www.expertise.com/wp-admin/[object%20Object]

Attachments (1)

Screenshot 2019-09-09 at 11.40.05 AM.png (1.1 MB) - added by prashantdu 6 weeks ago.

Download all attachments as: .zip

Change History (5)

#1 follow-up: @SergeyBiryukov
6 weeks ago

  • Component changed from General to Widgets
  • Keywords reporter-feedback added

Hi @prashantdu, welcome to WordPress Trac! Thanks for the report.

Does the issue still exist with all plugins disabled and a default theme (Twenty Nineteen) activated?

#2 @SergeyBiryukov
6 weeks ago

  • Focuses ui administration added

#3 in reply to: ↑ 1 @prashantdu
6 weeks ago

  • Keywords reporter-feedback removed

Replying to SergeyBiryukov:

Hi @prashantdu, welcome to WordPress Trac! Thanks for the report.

Does the issue still exist with all plugins disabled and a default theme (Twenty Nineteen) activated?

Widget is working fine with (Twenty Nineteen) activated. It is working well even with all plugins activated.

#4 @donmhico
6 weeks ago

Hi @prashantdu. I can't reproduce the issue.

Widget is working fine with (Twenty Nineteen) activated. It is working well even with all plugins activated.

I can't quite understand your last comment. Does it mean that the issue doesn't exist if you are using the Twenty Nineteen theme?

Note: See TracTickets for help on using tickets.