[wp-trac] [WordPress Trac] #56830: jQuery Migrate deprecation in wpdialog
WordPress Trac
noreply at wordpress.org
Sat Oct 15 12:54:54 UTC 2022
#56830: jQuery Migrate deprecation in wpdialog
----------------------------+----------------------------------------
Reporter: TobiasBg | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.2
Component: Administration | Version:
Severity: normal | Keywords: needs-patch good-first-bug
Focuses: javascript |
----------------------------+----------------------------------------
(Follow up to #51812.)
WP Core's customized jQuery UI widget `wpdialog` produces a jQuery Migrate
deprecation notice in the browser's console, about the `focus()` shorthand
being decprecated.
`/src/js/_enqueues/lib/dialog.js`'s [https://github.com/WordPress
/wordpress-develop/blob/trunk/src/js/_enqueues/lib/dialog.js#L20 line]
{{{#!js
this.element.focus();
}}}
should be changed to
{{{#!js
this.element._trigger('focus');
}}}
from what I can see.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56830>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list