WordPress/wp-includes/js
Peter Wilson 1b5dd9b426 Autosave: Compare heartbeat intervals in same unit.
Move the conversion of `minimalInterval` to milliseconds to be grouped with the other time conversions from seconds to milliseconds.

This fixes a bug in which the minimal and main intervals were compared after the former had been converted to milliseconds but the latter had not. This could cause the heatbeat interval to blow out to unexpectedly high values if the minimal interval was set.

Props tabrisrp, sabernhardt, SergeyBiryukov, audrasjb.
Fixes #54825.


Built from https://develop.svn.wordpress.org/trunk@53226


git-svn-id: http://core.svn.wordpress.org/trunk@52815 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-04-20 05:55:06 +00:00
..
codemirror
crop
dist Editor: Update WordPress packages for 6.0 Beta 2 2022-04-19 15:11:17 +00:00
imgareaselect Build/Test Tools: Update some NPM dependencies to the latest versions. 2022-04-08 20:07:18 +00:00
jcrop External Libraries: Update Jcrop to version 0.9.15. 2022-03-24 20:07:05 +00:00
jquery Build/Test Tools: Update some NPM dependencies to the latest versions. 2022-04-08 20:07:18 +00:00
mediaelement Build/Test Tools: Update some NPM dependencies to the latest versions. 2022-04-08 20:07:18 +00:00
plupload Build/Test Tools: Update some NPM dependencies to the latest versions. 2022-04-08 20:07:18 +00:00
swfupload
thickbox
tinymce Build/Test Tools: Update some NPM dependencies to the latest versions. 2022-04-08 20:07:18 +00:00
admin-bar.js
admin-bar.min.js Build/Test Tools: Update some NPM dependencies to the latest versions. 2022-04-08 20:07:18 +00:00
api-request.js
api-request.min.js Build/Test Tools: Update some NPM dependencies to the latest versions. 2022-04-08 20:07:18 +00:00
autosave.js
autosave.min.js Build/Test Tools: Update some NPM dependencies to the latest versions. 2022-04-08 20:07:18 +00:00
backbone.js External Libraries: Update some external libraries. 2022-04-12 17:17:22 +00:00
backbone.min.js External Libraries: Update some external libraries. 2022-04-12 17:17:22 +00:00
clipboard.js External Libraries: Update some external libraries. 2022-04-12 17:17:22 +00:00
clipboard.min.js External Libraries: Update some external libraries. 2022-04-12 17:17:22 +00:00
colorpicker.js
colorpicker.min.js Build/Test Tools: Update some NPM dependencies to the latest versions. 2022-04-08 20:07:18 +00:00
comment-reply.js
comment-reply.min.js Build/Test Tools: Update some NPM dependencies to the latest versions. 2022-04-08 20:07:18 +00:00
customize-base.js
customize-base.min.js Build/Test Tools: Update some NPM dependencies to the latest versions. 2022-04-08 20:07:18 +00:00
customize-loader.js
customize-loader.min.js Build/Test Tools: Update some NPM dependencies to the latest versions. 2022-04-08 20:07:18 +00:00
customize-models.js
customize-models.min.js Build/Test Tools: Update some NPM dependencies to the latest versions. 2022-04-08 20:07:18 +00:00
customize-preview-nav-menus.js
customize-preview-nav-menus.min.js Build/Test Tools: Update some NPM dependencies to the latest versions. 2022-04-08 20:07:18 +00:00
customize-preview-widgets.js
customize-preview-widgets.min.js Build/Test Tools: Update some NPM dependencies to the latest versions. 2022-04-08 20:07:18 +00:00
customize-preview.js
customize-preview.min.js Build/Test Tools: Update some NPM dependencies to the latest versions. 2022-04-08 20:07:18 +00:00
customize-selective-refresh.js
customize-selective-refresh.min.js Build/Test Tools: Update some NPM dependencies to the latest versions. 2022-04-08 20:07:18 +00:00
customize-views.js
customize-views.min.js
heartbeat.js Autosave: Compare heartbeat intervals in same unit. 2022-04-20 05:55:06 +00:00
heartbeat.min.js Autosave: Compare heartbeat intervals in same unit. 2022-04-20 05:55:06 +00:00
hoverintent-js.min.js
hoverIntent.js External Libraries: Update jQuery hoverIntent to version 1.10.2. 2022-01-03 15:03:18 +00:00
hoverIntent.min.js Build/Test Tools: Update some NPM dependencies to the latest versions. 2022-04-08 20:07:18 +00:00
imagesloaded.min.js
json2.js
json2.min.js Build/Test Tools: Update some NPM dependencies to the latest versions. 2022-04-08 20:07:18 +00:00
masonry.min.js
mce-view.js
mce-view.min.js Build/Test Tools: Update some NPM dependencies to the latest versions. 2022-04-08 20:07:18 +00:00
media-audiovideo.js Build: Update webpack to v5.x 2022-04-11 12:04:30 +00:00
media-audiovideo.min.js Build: Update webpack to v5.x 2022-04-11 12:04:30 +00:00
media-editor.js
media-editor.min.js Build/Test Tools: Update some NPM dependencies to the latest versions. 2022-04-08 20:07:18 +00:00
media-grid.js Build: Update webpack to v5.x 2022-04-11 12:04:30 +00:00
media-grid.min.js Build: Update webpack to v5.x 2022-04-11 12:04:30 +00:00
media-models.js Build: Update webpack to v5.x 2022-04-11 12:04:30 +00:00
media-models.min.js Build: Update webpack to v5.x 2022-04-11 12:04:30 +00:00
media-views.js Build: Update webpack to v5.x 2022-04-11 12:04:30 +00:00
media-views.min.js Build: Update webpack to v5.x 2022-04-11 12:04:30 +00:00
quicktags.js
quicktags.min.js Build/Test Tools: Update some NPM dependencies to the latest versions. 2022-04-08 20:07:18 +00:00
shortcode.js
shortcode.min.js Build/Test Tools: Update some NPM dependencies to the latest versions. 2022-04-08 20:07:18 +00:00
swfobject.js
tw-sack.js
tw-sack.min.js Build/Test Tools: Update some NPM dependencies to the latest versions. 2022-04-08 20:07:18 +00:00
twemoji.js Emoji: Update the Twemoji to version 14.0.2. 2022-04-12 05:56:23 +00:00
twemoji.min.js Emoji: Update the Twemoji to version 14.0.2. 2022-04-12 05:56:23 +00:00
underscore.js External Libraries: Update some external libraries. 2022-04-12 17:17:22 +00:00
underscore.min.js External Libraries: Update some external libraries. 2022-04-12 17:17:22 +00:00
utils.js
utils.min.js Build/Test Tools: Update some NPM dependencies to the latest versions. 2022-04-08 20:07:18 +00:00
wp-ajax-response.js Administration: Remove term page check from ajax-response.js. 2022-04-11 04:37:00 +00:00
wp-ajax-response.min.js Administration: Remove term page check from ajax-response.js. 2022-04-11 04:37:00 +00:00
wp-api.js
wp-api.min.js Build/Test Tools: Update some NPM dependencies to the latest versions. 2022-04-08 20:07:18 +00:00
wp-auth-check.js
wp-auth-check.min.js
wp-backbone.js
wp-backbone.min.js Build/Test Tools: Update some NPM dependencies to the latest versions. 2022-04-08 20:07:18 +00:00
wp-custom-header.js
wp-custom-header.min.js
wp-embed-template.js
wp-embed-template.min.js Build/Test Tools: Update some NPM dependencies to the latest versions. 2022-04-08 20:07:18 +00:00
wp-embed.js
wp-embed.min.js Build/Test Tools: Update some NPM dependencies to the latest versions. 2022-04-08 20:07:18 +00:00
wp-emoji-loader.js Emoji: Update the Twemoji to version 14.0.2. 2022-04-12 05:56:23 +00:00
wp-emoji-loader.min.js Emoji: Update the Twemoji to version 14.0.2. 2022-04-12 05:56:23 +00:00
wp-emoji-release.min.js Emoji: Update the Twemoji to version 14.0.2. 2022-04-12 05:56:23 +00:00
wp-emoji.js
wp-emoji.min.js
wp-list-revisions.js
wp-list-revisions.min.js
wp-lists.js Docs: Various inline documentation corrections and improvements. 2021-12-07 12:20:02 +00:00
wp-lists.min.js Build/Test Tools: Update some NPM dependencies to the latest versions. 2022-04-08 20:07:18 +00:00
wp-pointer.js
wp-pointer.min.js Build/Test Tools: Update some NPM dependencies to the latest versions. 2022-04-08 20:07:18 +00:00
wp-sanitize.js
wp-sanitize.min.js Build/Test Tools: Update some NPM dependencies to the latest versions. 2022-04-08 20:07:18 +00:00
wp-util.js
wp-util.min.js
wpdialog.js
wpdialog.min.js
wplink.js
wplink.min.js Build/Test Tools: Update some NPM dependencies to the latest versions. 2022-04-08 20:07:18 +00:00
zxcvbn-async.js
zxcvbn-async.min.js
zxcvbn.min.js