[wp-trac] [WordPress Trac] #56830: jQuery Migrate deprecation in wpdialog

WordPress Trac noreply at wordpress.org
Tue Jan 24 10:38:21 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):

 Some more findings:
 `this` inside the `open()` function of `wpdialog` refers to the jQuery UI
 widget, whereas `this.element` is the jQuery object of the DOM element.
 Thus, native jQuery methods need to used, as `_trigger` is only defined on
 the jQuery UI widgets (in core.js).

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56830#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list