Make WordPress Core

Changeset 55052


Ignore:
Timestamp:
01/11/2023 02:05:22 PM (17 months ago)
Author:
audrasjb
Message:

Code Modernization: Fix a jQuery Migrate deprecation in wpdialog.

This changeset replaces a focus() shorthand in WP Core's customized jQuery UI widget wpdialog to avoid a jQuery Migrate deprecation notice in the browser's console.

Props TobiasBg, elifvish.
Fixes #56830.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/js/_enqueues/lib/dialog.js

    r43347 r55052  
    1818
    1919            // WebKit leaves focus in the TinyMCE editor unless we shift focus.
    20             this.element.focus();
     20            this.element._trigger('focus');
    2121            this._trigger('refresh');
    2222        }
Note: See TracChangeset for help on using the changeset viewer.