WordPress/wp-includes/js
Sergey Biryukov 1aca7e8b25 Editor: Correct the check for unsaved content in wp.autosave.server.postChanged().
This fixes improper triggering of the "Are you sure?" prompt when navigating away from the old, "classic" Edit Post screen and there are no changes.

The previous check did not account for Pages or any custom post types that don't have a Title, Content, or Excerpt field.

Follow-up to [50031].

Props hwk-fr, mukesh27, audrasjb, archon810, Clorith, ibiza69, tonysandwich, roger995, bartosz777, viablethought, dbtedg, worldedu, hmabpera, magnuswebdesign.
Fixes #52440.
Built from https://develop.svn.wordpress.org/trunk@50232


git-svn-id: http://core.svn.wordpress.org/trunk@49893 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-02-06 14:16:07 +00:00
..
codemirror
crop
dist Editor: Update @wordpress npm packages 2021-02-02 05:17:13 +00:00
imgareaselect Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
jcrop
jquery Build/Test Tools: Update the uglify-js package. 2021-01-20 13:35:18 +00:00
mediaelement Build/Test Tools: Update the uglify-js package. 2021-01-20 13:35:18 +00:00
plupload External Libraries: First pass at fixing jQuery deprecations in WordPress core and bundled themes. 2021-01-22 12:32:03 +00:00
swfupload
thickbox General: Use correct value for the speak property in various CSS files. 2020-10-26 02:25:09 +00:00
tinymce Build/Test Tools: Update the uglify-js package. 2021-01-20 13:35:18 +00:00
admin-bar.js Build/Test Tools: Enable JSDocs to be linted with ESLint. 2020-07-27 23:35:02 +00:00
admin-bar.min.js Build/Test Tools: Update the uglify-js package. 2021-01-20 13:35:18 +00:00
api-request.js Site Health, App Passwords: Ensure REST API responses are properly translated. 2020-12-01 03:44:05 +00:00
api-request.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
autosave.js Editor: Correct the check for unsaved content in wp.autosave.server.postChanged(). 2021-02-06 14:16:07 +00:00
autosave.min.js Editor: Correct the check for unsaved content in wp.autosave.server.postChanged(). 2021-02-06 14:16:07 +00:00
backbone.js
backbone.min.js Build/Test Tools: Update the uglify-js package. 2021-01-20 13:35:18 +00:00
clipboard.js
clipboard.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
colorpicker.js
colorpicker.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
comment-reply.js Comments: Hide the link to the initial parent comment in the reply heading when replying to another comment. 2020-10-18 06:41:04 +00:00
comment-reply.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
customize-base.js External Libraries: First pass at fixing jQuery deprecations in WordPress core and bundled themes. 2021-01-22 12:32:03 +00:00
customize-base.min.js External Libraries: First pass at fixing jQuery deprecations in WordPress core and bundled themes. 2021-01-22 12:32:03 +00:00
customize-loader.js
customize-loader.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
customize-models.js
customize-models.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
customize-preview-nav-menus.js Build/Test Tools: Enable JSDocs to be linted with ESLint. 2020-07-27 23:35:02 +00:00
customize-preview-nav-menus.min.js Build/Test Tools: Update the uglify-js package. 2021-01-20 13:35:18 +00:00
customize-preview-widgets.js
customize-preview-widgets.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
customize-preview.js Build/Test Tools: Enable JSDocs to be linted with ESLint. 2020-07-27 23:35:02 +00:00
customize-preview.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
customize-selective-refresh.js Docs: Correct alignment for some parameters in JS documentation. 2020-07-28 00:07:03 +00:00
customize-selective-refresh.min.js Build/Test Tools: Update the uglify-js package. 2021-01-20 13:35:18 +00:00
customize-views.js
customize-views.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
heartbeat.js
heartbeat.min.js Build/Test Tools: Update the uglify-js package. 2021-01-20 13:35:18 +00:00
hoverintent-js.min.js
hoverIntent.js
hoverIntent.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
imagesloaded.min.js
json2.js
json2.min.js Build/Test Tools: Update the uglify-js package. 2021-01-20 13:35:18 +00:00
masonry.min.js
mce-view.js Build/Test Tools: Enable JSDocs to be linted with ESLint. 2020-07-27 23:35:02 +00:00
mce-view.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
media-audiovideo.js
media-audiovideo.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
media-editor.js Build/Test Tools: Enable JSDocs to be linted with ESLint. 2020-07-27 23:35:02 +00:00
media-editor.min.js Build/Test Tools: Update the uglify-js package. 2021-01-20 13:35:18 +00:00
media-grid.js External Libraries: First pass at fixing jQuery deprecations in WordPress core and bundled themes. 2021-01-22 12:32:03 +00:00
media-grid.min.js External Libraries: First pass at fixing jQuery deprecations in WordPress core and bundled themes. 2021-01-22 12:32:03 +00:00
media-models.js Media: Remove unused refresh from _requery. 2021-01-29 02:41:57 +00:00
media-models.min.js Media: Remove unused refresh from _requery. 2021-01-29 02:41:57 +00:00
media-views.js External Libraries: First pass at fixing jQuery deprecations in WordPress core and bundled themes. 2021-01-22 12:32:03 +00:00
media-views.min.js External Libraries: First pass at fixing jQuery deprecations in WordPress core and bundled themes. 2021-01-22 12:32:03 +00:00
quicktags.js
quicktags.min.js Build/Test Tools: Update the uglify-js package. 2021-01-20 13:35:18 +00:00
shortcode.js
shortcode.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
swfobject.js
tw-sack.js
tw-sack.min.js
twemoji.js Emoji: Update Twemoji to version 13.0.1. 2020-10-20 16:55:23 +00:00
twemoji.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
underscore.js
underscore.min.js Build/Test Tools: Update the uglify-js package. 2021-01-20 13:35:18 +00:00
utils.js
utils.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
wp-ajax-response.js External Libraries: First pass at fixing jQuery deprecations in WordPress core and bundled themes. 2021-01-22 12:32:03 +00:00
wp-ajax-response.min.js External Libraries: First pass at fixing jQuery deprecations in WordPress core and bundled themes. 2021-01-22 12:32:03 +00:00
wp-api.js REST API: JS Client - improve collection route construction for empty parents. 2020-10-29 18:32:05 +00:00
wp-api.min.js Build/Test Tools: Update the uglify-js package. 2021-01-20 13:35:18 +00:00
wp-auth-check.js Coding Standards: Fix JSHint issue in js/_enqueues/lib/auth-check.js 2020-07-06 16:27:02 +00:00
wp-auth-check.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
wp-backbone.js
wp-backbone.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
wp-custom-header.js Build/Test Tools: Enable JSDocs to be linted with ESLint. 2020-07-27 23:35:02 +00:00
wp-custom-header.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
wp-embed-template.js Embeds: Only catch clicks from the primary mouse button in the click handler, without any modifier keys. 2020-10-19 13:36:08 +00:00
wp-embed-template.min.js Build/Test Tools: Update the uglify-js package. 2021-01-20 13:35:18 +00:00
wp-embed.js
wp-embed.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
wp-emoji-loader.js
wp-emoji-loader.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
wp-emoji-release.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
wp-emoji.js
wp-emoji.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
wp-list-revisions.js
wp-list-revisions.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
wp-lists.js Build/Test Tools: Enable JSDocs to be linted with ESLint. 2020-07-27 23:35:02 +00:00
wp-lists.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
wp-pointer.js
wp-pointer.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
wp-sanitize.js
wp-sanitize.min.js
wp-util.js Build/Test Tools: Enable JSDocs to be linted with ESLint. 2020-07-27 23:35:02 +00:00
wp-util.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
wpdialog.js
wpdialog.min.js
wplink.js External Libraries: First pass at fixing jQuery deprecations in WordPress core and bundled themes. 2021-01-22 12:32:03 +00:00
wplink.min.js External Libraries: First pass at fixing jQuery deprecations in WordPress core and bundled themes. 2021-01-22 12:32:03 +00:00
zxcvbn-async.js
zxcvbn-async.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
zxcvbn.min.js