[wp-trac] [WordPress Trac] #56830: jQuery Migrate deprecation in wpdialog
WordPress Trac
noreply at wordpress.org
Sun Jan 22 22:36:22 UTC 2023
#56830: jQuery Migrate deprecation in wpdialog
----------------------------+-------------------------
Reporter: TobiasBg | Owner: audrasjb
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 6.2
Component: Administration | Version:
Severity: normal | Resolution:
Keywords: good-first-bug | Focuses: javascript
----------------------------+-------------------------
Comment (by TobiasBg):
Sure! In my plugin TablePress, I'm
[https://github.com/TablePress/TablePress/blob/2.0.4/admin/js/edit.js#L686-L702
creating] a wpdialog. Once I
[https://github.com/TablePress/TablePress/blob/2.0.4/admin/js/edit.js#L709
open] that, I see the error.
(Quickest way: Install the plugin, add a new table, and hit Cmd+P on the
"Edit" screen.)
It seems that a pure call to
{{{
jQuery( '#selector_id' ).wpdialog( {} );
}}}
with some existing `#selector_id` element is sufficient, without any
options being set.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56830#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list