WordPress/wp-includes/js
Weston Ruter 2869e3a186 Administration: Remove deprecated `unload` event handlers and use `pagehide` (and `pageshow`) when appropriate.
Use `pagehide` event instead of `unload` in the following cases:

* For classic editor to release the post lock.
* In Text widget to rebuild editor after dragging widget to new location in classic widgets interface.
* To clear out the `window.name` when navigating away from a post preview.
* To suspend heartbeat, while also using `pageshow` event to resume as if it had been a focused tab in case page restored from bfcache. 

Also:

* Remove obsolete mobile cleanup code in `js/_enqueues/lib/gallery.js` (introduced in [9894]). Do same for `src/js/_enqueues/wp/media/models.js` (introduced in [22872]). See #22552.
* Remove obsolete Firefox-specific workaround in `js/_enqueues/wp/mce-view.js` from [39282]. See #38511.

Fixes #55491.
Props spenserhale, westonruter, adamsilverstein, azaozz, shawfactor, peterwilsoncc, swissspidy.
Built from https://develop.svn.wordpress.org/trunk@56809


git-svn-id: http://core.svn.wordpress.org/trunk@56321 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-10-09 21:31:27 +00:00
..
codemirror
crop
dist Update npm packages to latest versions for 6.4 beta 3. 2023-10-09 17:24:24 +00:00
imgareaselect Media: Update admin image editor design. 2023-06-14 20:42:27 +00:00
jcrop
jquery External Libraries: Update jQuery to version 3.7.1. 2023-08-28 17:14:23 +00:00
mediaelement Media: Enable selective optout for video and audio shortcodes. 2023-02-07 16:00:42 +00:00
plupload Build/Test Tools: Update npm dependencies. 2023-02-02 16:36:32 +00:00
swfupload
thickbox Media: Add support for WebP images in the Thickbox library. 2022-05-30 14:53:11 +00:00
tinymce Build/Test Tools: Update npm dependencies. 2023-02-02 16:36:32 +00:00
admin-bar.js
admin-bar.min.js Build/Test Tools: Update npm dependencies. 2023-02-02 16:36:32 +00:00
api-request.js
api-request.min.js
autosave.js
autosave.min.js Build/Test Tools: Update npm dependencies. 2023-02-02 16:36:32 +00:00
backbone.js External Libraries: Update Backbone.js to version `1.5.0`. 2023-08-11 16:12:21 +00:00
backbone.min.js External Libraries: Update Backbone.js to version `1.5.0`. 2023-08-11 16:12:21 +00:00
clipboard.js External Libraries: Update `clipboard` and `polyfill-library`. 2022-10-04 15:55:23 +00:00
clipboard.min.js External Libraries: Update `clipboard` and `polyfill-library`. 2022-10-04 15:55:23 +00:00
colorpicker.js
colorpicker.min.js Build/Test Tools: Update NPM dependencies to their latest versions. 2022-09-23 19:55:30 +00:00
comment-reply.js Docs: Align spelling with American English. 2023-01-10 09:30:13 +00:00
comment-reply.min.js
customize-base.js Docs: Fix a few more typos in DocBlocks. 2023-05-20 10:19:23 +00:00
customize-base.min.js Build/Test Tools: Update npm dependencies. 2023-02-02 16:36:32 +00:00
customize-loader.js
customize-loader.min.js Build/Test Tools: Update npm dependencies. 2023-02-02 16:36:32 +00:00
customize-models.js
customize-models.min.js Build/Test Tools: Update npm dependencies. 2023-02-02 16:36:32 +00:00
customize-preview-nav-menus.js
customize-preview-nav-menus.min.js
customize-preview-widgets.js
customize-preview-widgets.min.js Build/Test Tools: Update npm dependencies. 2023-02-02 16:36:32 +00:00
customize-preview.js
customize-preview.min.js Build/Test Tools: Update npm dependencies. 2023-02-02 16:36:32 +00:00
customize-selective-refresh.js
customize-selective-refresh.min.js
customize-views.js
customize-views.min.js
heartbeat.js Administration: Remove deprecated `unload` event handlers and use `pagehide` (and `pageshow`) when appropriate. 2023-10-09 21:31:27 +00:00
heartbeat.min.js Administration: Remove deprecated `unload` event handlers and use `pagehide` (and `pageshow`) when appropriate. 2023-10-09 21:31:27 +00:00
hoverIntent.js
hoverIntent.min.js
hoverintent-js.min.js
imagesloaded.min.js External Libraries: Update imagesLoaded to version `5.0.0`. 2023-08-11 18:18:26 +00:00
json2.js
json2.min.js Build/Test Tools: Update NPM dependencies to their latest versions. 2022-09-23 19:55:30 +00:00
masonry.min.js
mce-view.js Administration: Remove deprecated `unload` event handlers and use `pagehide` (and `pageshow`) when appropriate. 2023-10-09 21:31:27 +00:00
mce-view.min.js Administration: Remove deprecated `unload` event handlers and use `pagehide` (and `pageshow`) when appropriate. 2023-10-09 21:31:27 +00:00
media-audiovideo.js Build/Test Tools: Update build related dependencies to their latest versions. 2023-09-21 13:26:32 +00:00
media-audiovideo.min.js Build/Test Tools: Update build related dependencies to their latest versions. 2023-09-21 13:26:32 +00:00
media-editor.js
media-editor.min.js Build/Test Tools: Update npm dependencies. 2023-02-02 16:36:32 +00:00
media-grid.js Build/Test Tools: Update build related dependencies to their latest versions. 2023-09-21 13:26:32 +00:00
media-grid.min.js Build/Test Tools: Update build related dependencies to their latest versions. 2023-09-21 13:26:32 +00:00
media-models.js Administration: Remove deprecated `unload` event handlers and use `pagehide` (and `pageshow`) when appropriate. 2023-10-09 21:31:27 +00:00
media-models.min.js Administration: Remove deprecated `unload` event handlers and use `pagehide` (and `pageshow`) when appropriate. 2023-10-09 21:31:27 +00:00
media-views.js Build/Test Tools: Update build related dependencies to their latest versions. 2023-09-21 13:26:32 +00:00
media-views.min.js Build/Test Tools: Update build related dependencies to their latest versions. 2023-09-21 13:26:32 +00:00
quicktags.js
quicktags.min.js Build/Test Tools: Update npm dependencies. 2023-02-02 16:36:32 +00:00
shortcode.js
shortcode.min.js Build/Test Tools: Update NPM dependencies to their latest versions. 2022-09-23 19:55:30 +00:00
swfobject.js
tw-sack.js
tw-sack.min.js
twemoji.js Emoji: Always skip nodes with the `wp-exclude-emoji` CSS class. 2023-02-02 00:53:25 +00:00
twemoji.min.js Emoji: Always skip nodes with the `wp-exclude-emoji` CSS class. 2023-02-02 00:53:25 +00:00
underscore.js External Libraries: Update Underscore.js to version `1.13.6`. 2022-09-27 15:18:25 +00:00
underscore.min.js External Libraries: Update Underscore.js to version `1.13.6`. 2022-09-27 15:18:25 +00:00
utils.js
utils.min.js Build/Test Tools: Update NPM dependencies to their latest versions. 2022-09-23 19:55:30 +00:00
wp-ajax-response.js Administration: Audible messages on AJAX error cases. 2022-07-16 01:08:10 +00:00
wp-ajax-response.min.js Build/Test Tools: Update NPM dependencies to their latest versions. 2022-09-23 19:55:30 +00:00
wp-api.js Docs: Align spelling with American English. 2023-01-10 09:30:13 +00:00
wp-api.min.js Build/Test Tools: Update npm dependencies. 2023-02-02 16:36:32 +00:00
wp-auth-check.js
wp-auth-check.min.js
wp-backbone.js
wp-backbone.min.js
wp-custom-header.js
wp-custom-header.min.js Build/Test Tools: Update npm dependencies. 2023-02-02 16:36:32 +00:00
wp-embed-template.js
wp-embed-template.min.js
wp-embed.js Embeds: Modernize wp-embed script with removal of obsolete IE10/IE11 code and support for WP<4.4. 2023-08-10 19:49:17 +00:00
wp-embed.min.js Embeds: Modernize wp-embed script with removal of obsolete IE10/IE11 code and support for WP<4.4. 2023-08-10 19:49:17 +00:00
wp-emoji-loader.js Emoji: Suppress console errors from sessionStorage usage in sandboxed post embed iframe. 2023-08-04 00:23:25 +00:00
wp-emoji-loader.min.js Emoji: Suppress console errors from sessionStorage usage in sandboxed post embed iframe. 2023-08-04 00:23:25 +00:00
wp-emoji-release.min.js Emoji: Always skip nodes with the `wp-exclude-emoji` CSS class. 2023-02-02 00:53:25 +00:00
wp-emoji.js Emoji: Always skip nodes with the `wp-exclude-emoji` CSS class. 2023-02-02 00:53:25 +00:00
wp-emoji.min.js Emoji: Always skip nodes with the `wp-exclude-emoji` CSS class. 2023-02-02 00:53:25 +00:00
wp-list-revisions.js
wp-list-revisions.min.js
wp-lists.js Editor: Improve accessibility of new custom field UI. 2023-06-24 14:32:20 +00:00
wp-lists.min.js Editor: Improve accessibility of new custom field UI. 2023-06-24 14:32:20 +00:00
wp-pointer.js
wp-pointer.min.js
wp-sanitize.js
wp-sanitize.min.js
wp-util.js General: Throw a more descriptive error when templates are not found. 2022-09-20 03:52:10 +00:00
wp-util.min.js General: Throw a more descriptive error when templates are not found. 2022-09-20 03:52:10 +00:00
wpdialog.js Code Modernization: Fix a JS error in `wpdialog`. 2023-01-24 21:13:12 +00:00
wpdialog.min.js Code Modernization: Fix a JS error in `wpdialog`. 2023-01-24 21:13:12 +00:00
wplink.js
wplink.min.js Build/Test Tools: Update npm dependencies. 2023-02-02 16:36:32 +00:00
zxcvbn-async.js
zxcvbn-async.min.js
zxcvbn.min.js