WordPress/wp-includes/js
Joe McGill 3dbba0fff3 Post Thumbnails: Only update featured images when saving a post.
Previously, changing the post thumbnail of a published post in the edit screen
would immediately apply the change, rather than waiting for the post to be
saved before applying the update. This could lead to someone unintentionally
editing the post thumbnail on a published post, and made it impossible to
preview changes to post thumbnails on published posts before saving the change.

This introduces a new Ajax handler, `wp_ajax_get_post_thumbnail_html()` to
retrieve the HTML for the post thumbnail meta box without updating the post
meta value for `_thumbnail_id`. It also allows post thumbnail changes to be
previewed by passing the `_thumbnail_id` as a query variable to the preview
screen and adding a new filter, `_wp_preview_post_thumbnail_filter()`, which
gets applied to `get_post_metadata` during the post preview process.

Props flixos90.
Fixes #12922.
Built from https://develop.svn.wordpress.org/trunk@38118


git-svn-id: http://core.svn.wordpress.org/trunk@38059 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-20 16:24:28 +00:00
..
crop
imgareaselect
jcrop
jquery External Libraries: Update jQuery to 1.12.4. 2016-05-23 09:00:29 +00:00
mediaelement External Libraries: Update MediaElement.js to 2.22.0. 2016-07-18 10:59:30 +00:00
plupload Media: Use the correct variable for the file object. 2016-06-16 16:15:31 +00:00
swfupload
thickbox Accessibility: the Thickbox "Close" control should always be a button. 2016-05-23 10:30:29 +00:00
tinymce TinyMCE: replace the editor iframe title on MacOS to fix the help shortcut. 2016-07-20 01:39:31 +00:00
admin-bar.js
admin-bar.min.js Update grunt-contrib-uglify from ~0.10.0 to ~1.0.1 2016-04-15 16:10:37 +00:00
autosave.js Autosave: improve the notice when the sessionStorage autosave is different than the content. 2016-06-17 03:02:29 +00:00
autosave.min.js Autosave: improve the notice when the sessionStorage autosave is different than the content. 2016-06-17 03:02:29 +00:00
backbone.min.js External Libraries: Update Backbone to version 1.3.3. 2016-06-16 09:27:29 +00:00
colorpicker.js
colorpicker.min.js Update grunt-contrib-uglify from ~0.10.0 to ~1.0.1 2016-04-15 16:10:37 +00:00
comment-reply.js
comment-reply.min.js
customize-base.js Customize: Add setting validation model and control notifications to augment setting sanitization. 2016-05-20 21:10:27 +00:00
customize-base.min.js Customize: Add setting validation model and control notifications to augment setting sanitization. 2016-05-20 21:10:27 +00:00
customize-loader.js Customize: Don't auto-close the customizer when a new theme is activated. 2016-05-01 19:54:27 +00:00
customize-loader.min.js Customize: Don't auto-close the customizer when a new theme is activated. 2016-05-01 19:54:27 +00:00
customize-models.js
customize-models.min.js Update grunt-contrib-uglify from ~0.10.0 to ~1.0.1 2016-04-15 16:10:37 +00:00
customize-preview-nav-menus.js Customize: Fix regressions and harden implementation of selective refresh for nav menus. 2016-03-09 00:09:26 +00:00
customize-preview-nav-menus.min.js Customize: Fix regressions and harden implementation of selective refresh for nav menus. 2016-03-09 00:09:26 +00:00
customize-preview-widgets.js Customize: Remove format placeholders from widget templates and selectors, fixing a jQuery selector syntax error and the broken highlight/shift-click behaviors. 2016-04-28 18:20:29 +00:00
customize-preview-widgets.min.js Customize: Remove format placeholders from widget templates and selectors, fixing a jQuery selector syntax error and the broken highlight/shift-click behaviors. 2016-04-28 18:20:29 +00:00
customize-preview.js Customize: Update server-sent setting validation notifications as changes are entered. 2016-06-14 19:17:28 +00:00
customize-preview.min.js Customize: Update server-sent setting validation notifications as changes are entered. 2016-06-14 19:17:28 +00:00
customize-selective-refresh.js Customize: Update server-sent setting validation notifications as changes are entered. 2016-06-14 19:17:28 +00:00
customize-selective-refresh.min.js Customize: Update server-sent setting validation notifications as changes are entered. 2016-06-14 19:17:28 +00:00
customize-views.js
customize-views.min.js
heartbeat.js
heartbeat.min.js
hoverIntent.js
hoverIntent.min.js
imagesloaded.min.js External Libraries: Update Masonry to 3.3.2 and imagesLoaded to 3.2.0. 2016-06-28 18:48:31 +00:00
json2.js
json2.min.js
masonry.min.js External Libraries: Update Masonry to 3.3.2 and imagesLoaded to 3.2.0. 2016-06-28 18:48:31 +00:00
mce-view.js TinyMCE: use new non-editable implementation 2016-05-17 18:49:30 +00:00
mce-view.min.js TinyMCE: use new non-editable implementation 2016-05-17 18:49:30 +00:00
media-audiovideo.js
media-audiovideo.min.js
media-editor.js Post Thumbnails: Only update featured images when saving a post. 2016-07-20 16:24:28 +00:00
media-editor.min.js Post Thumbnails: Only update featured images when saving a post. 2016-07-20 16:24:28 +00:00
media-grid.js Media: properly refresh the position of the Plupload shim so it moves over the Select Files button or off the screen. Fixes selecting files in MS Edge on the Media grid and Media -> Add New screens. 2016-06-16 04:54:29 +00:00
media-grid.min.js Media: properly refresh the position of the Plupload shim so it moves over the Select Files button or off the screen. Fixes selecting files in MS Edge on the Media grid and Media -> Add New screens. 2016-06-16 04:54:29 +00:00
media-models.js
media-models.min.js Update grunt-contrib-uglify from ~0.10.0 to ~1.0.1 2016-04-15 16:10:37 +00:00
media-views.js Media: Restore keyboard navigation of the media grid. 2016-06-21 13:35:34 +00:00
media-views.min.js Media: Restore keyboard navigation of the media grid. 2016-06-21 13:35:34 +00:00
quicktags.js Editor quickTags: when the user selects some text by triple-clicking, then wraps it in a tag, and the last selected char is \n, insert the closing tag before the line break. 2016-06-09 00:25:27 +00:00
quicktags.min.js Editor quickTags: when the user selects some text by triple-clicking, then wraps it in a tag, and the last selected char is \n, insert the closing tag before the line break. 2016-06-09 00:25:27 +00:00
shortcode.js Media: Ensure empty alt attributes are set to blank strings. 2016-07-20 14:38:29 +00:00
shortcode.min.js Media: Ensure empty alt attributes are set to blank strings. 2016-07-20 14:38:29 +00:00
swfobject.js
tw-sack.js
tw-sack.min.js
twemoji.js Emoji: Update to Unicode 9.0 emoji. 2016-07-18 07:35:39 +00:00
twemoji.min.js Emoji: Update to Unicode 9.0 emoji. 2016-07-18 07:35:39 +00:00
underscore.min.js
utils.js
utils.min.js
wp-a11y.js Accessibility: Ensure only text is sent to aria-live messages. 2016-07-20 14:26:28 +00:00
wp-a11y.min.js Accessibility: Ensure only text is sent to aria-live messages. 2016-07-20 14:26:28 +00:00
wp-ajax-response.js
wp-ajax-response.min.js Update grunt-contrib-uglify from ~0.10.0 to ~1.0.1 2016-04-15 16:10:37 +00:00
wp-auth-check.js
wp-auth-check.min.js
wp-backbone.js
wp-backbone.min.js
wp-embed-template.js Embeds: After [37745], check if a featured image exists before attaching an event listener. 2016-07-05 16:16:57 +00:00
wp-embed-template.min.js Embeds: After [37745], check if a featured image exists before attaching an event listener. 2016-07-05 16:16:57 +00:00
wp-embed.js
wp-embed.min.js
wp-emoji-loader.js Emoji: Update to Unicode 9.0 emoji. 2016-07-18 07:35:39 +00:00
wp-emoji-loader.min.js Emoji: Update to Unicode 9.0 emoji. 2016-07-18 07:35:39 +00:00
wp-emoji-release.min.js Emoji: Update to Unicode 9.0 emoji. 2016-07-18 07:35:39 +00:00
wp-emoji.js Emoji: Use SVG in supported browsers 2016-05-20 06:03:27 +00:00
wp-emoji.min.js Emoji: Use SVG in supported browsers 2016-05-20 06:03:27 +00:00
wp-list-revisions.js
wp-list-revisions.min.js Update grunt-contrib-uglify from ~0.10.0 to ~1.0.1 2016-04-15 16:10:37 +00:00
wp-lists.js Comments: After [37743], prevent a JavaScript error when wpAjax.parseAjaxResponse() returns an error or true. 2016-07-13 15:03:28 +00:00
wp-lists.min.js Comments: After [37743], prevent a JavaScript error when wpAjax.parseAjaxResponse() returns an error or true. 2016-07-13 15:03:28 +00:00
wp-pointer.js
wp-pointer.min.js
wp-util.js Multisite: Change WP_Network id property to an integer. 2016-06-26 14:26:29 +00:00
wp-util.min.js Multisite: Change WP_Network id property to an integer. 2016-06-26 14:26:29 +00:00
wpdialog.js
wpdialog.min.js
wplink.js Editor: after inserting a link detect if the URL is broken, first run. 2016-06-17 20:41:28 +00:00
wplink.min.js Editor: after inserting a link detect if the URL is broken, first run. 2016-06-17 20:41:28 +00:00
zxcvbn-async.js
zxcvbn-async.min.js
zxcvbn.min.js