WordPress/wp-includes/js
Weston Ruter 9038612705 Embeds: Conditionally enqueue wp-embed only if needed and send ready message in case script loads after post embed windows.
* Prevent loading `wp-embed` script unconditionally on every page in favor of conditionally enqueueing when a post embed is detected. The `wp-embed` script is also explicitly marked as being in the footer group. Sites which currently disable post embed scripts from being enqueued via `remove_action( 'wp_head', 'wp_oembed_add_host_js' )` will continue to do so.
* Send a `ready` message from the host page to each post embed window in case the `iframe` loads before the `wp-embed` script does. When the `ready` message is received by the post embed window, it sends the same `height` message as it sends when it loads.
* Eliminate use of `grunt-include` to inject emoji script and the post embed script. Instead obtain the script contents via `file_get_contents()` (as is done elsewhere in core) and utilize `wp_print_inline_script_tag()`/`wp_get_inline_script_tag()` to construct out the script. This simplifies the logic and allows the running of src without `SCRIPT_DEBUG` enabled.
* For the embed code that users are provided to copy for embedding outside of WP, add the `secret` on the `blockquote` and `iframe`. This ensures the `blockquote` will be hidden when the `iframe` loads. The embed code in question is accessed here via `get_post_embed_html()`.

Props westonruter, swissspidy, pento, flixos90, ocean90.
Fixes #44632, #44306.

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


git-svn-id: http://core.svn.wordpress.org/trunk@51724 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-11-11 02:49:18 +00:00
..
codemirror
crop
dist Update @wordpress packages 2021-11-10 06:01:30 +00:00
imgareaselect Build/Test Tools: Update the several dependencies. 2021-05-27 19:33:19 +00:00
jcrop
jquery General: Remove role="navigation" from nav elements. 2021-11-01 21:47:13 +00:00
mediaelement Build/Test Tools: Update the uglify-js package. 2021-01-20 13:35:18 +00:00
plupload General: Remove role="navigation" from nav elements. 2021-11-01 21:47:13 +00:00
swfupload
thickbox External Libraries: Correct click event handling in the Thickbox library. 2021-02-23 10:54:06 +00:00
tinymce Editor: Revert [51748] and [51649]. They intorduced a bug where wp.editor may be replaced with wp.oldEditor in certain cases. 2021-09-08 23:29:58 +00:00
admin-bar.js
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 External Libraries: Further fix jQuery deprecations in WordPress core. 2021-03-18 19:01:03 +00:00
autosave.min.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-03-18 19:01:03 +00:00
backbone.js
backbone.min.js General: Remove role="navigation" from nav elements. 2021-11-01 21:47:13 +00:00
clipboard.js External Libraries: Update Clipboard.js library to version 2.0.8. 2021-03-18 15:54:18 +00:00
clipboard.min.js Build/Test Tools: Update several devDependencies. 2021-06-08 17:15:15 +00:00
colorpicker.js
colorpicker.min.js Build/Test Tools: Update the several dependencies. 2021-05-11 20:12:15 +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 General: Remove role="navigation" from nav elements. 2021-11-01 21:47:13 +00:00
customize-base.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-03-18 19:01:03 +00:00
customize-base.min.js Build/Test Tools: Update several devDependencies. 2021-06-08 17:15:15 +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
customize-preview-nav-menus.min.js Build/Test Tools: Update some dependencies. 2021-04-06 14:31:21 +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
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
customize-selective-refresh.min.js Build/Test Tools: Update some devDependencies. 2021-03-18 17:48:23 +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 External Libraries: Further fix jQuery deprecations in WordPress core. 2021-03-18 19:01:03 +00:00
heartbeat.min.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-03-18 19:01:03 +00:00
hoverintent-js.min.js
hoverIntent.js External Libraries: Update jQuery hoverIntent to version 1.10.1. 2021-03-10 15:25:20 +00:00
hoverIntent.min.js General: Remove role="navigation" from nav elements. 2021-11-01 21:47:13 +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
mce-view.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
media-audiovideo.js Build: Use deterministic module ids in webpack for media. 2021-05-25 00:12:57 +00:00
media-audiovideo.min.js Build: Use deterministic module ids in webpack for media. 2021-05-25 00:12:57 +00:00
media-editor.js
media-editor.min.js Build/Test Tools: Update the uglify-js package. 2021-01-20 13:35:18 +00:00
media-grid.js Build: Use deterministic module ids in webpack for media. 2021-05-25 00:12:57 +00:00
media-grid.min.js Build: Use deterministic module ids in webpack for media. 2021-05-25 00:12:57 +00:00
media-models.js Media: Increase number of media items displayed per page. 2021-08-18 06:00:59 +00:00
media-models.min.js Media: Increase number of media items displayed per page. 2021-08-18 06:00:59 +00:00
media-views.js Media: Add "webp" extension to wp.media.controller.Library isImageAttachment. 2021-11-09 15:01:00 +00:00
media-views.min.js Media: Add "webp" extension to wp.media.controller.Library isImageAttachment. 2021-11-09 15:01:00 +00:00
quicktags.js Editor: Revert [51748] and [51649]. They intorduced a bug where wp.editor may be replaced with wp.oldEditor in certain cases. 2021-09-08 23:29:58 +00:00
quicktags.min.js General: Remove role="navigation" from nav elements. 2021-11-01 21:47:13 +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 the Twemoji library to version 13.1.0. 2021-06-08 22:15:12 +00:00
twemoji.min.js Emoji: Update the Twemoji library to version 13.1.0. 2021-06-08 22:15:12 +00:00
underscore.js External Libraries: Update Underscore to version 1.13.1. 2021-04-21 17:55:19 +00:00
underscore.min.js General: Remove role="navigation" from nav elements. 2021-11-01 21:47:13 +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: Further fix jQuery deprecations in WordPress core. 2021-03-18 19:01:03 +00:00
wp-ajax-response.min.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-03-18 19:01: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 General: Remove role="navigation" from nav elements. 2021-11-01 21:47:13 +00:00
wp-auth-check.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-03-18 19:01:03 +00:00
wp-auth-check.min.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-03-18 19:01:03 +00:00
wp-backbone.js
wp-backbone.min.js Build/Test Tools: Update some devDependencies. 2021-03-18 17:48:23 +00:00
wp-custom-header.js Customize: Set playsinline attribute for custom header videos. 2021-04-10 12:40:05 +00:00
wp-custom-header.min.js Customize: Set playsinline attribute for custom header videos. 2021-04-10 12:40:05 +00:00
wp-embed-template.js Embeds: Conditionally enqueue wp-embed only if needed and send ready message in case script loads after post embed windows. 2021-11-11 02:49:18 +00:00
wp-embed-template.min.js Embeds: Conditionally enqueue wp-embed only if needed and send ready message in case script loads after post embed windows. 2021-11-11 02:49:18 +00:00
wp-embed.js Embeds: Conditionally enqueue wp-embed only if needed and send ready message in case script loads after post embed windows. 2021-11-11 02:49:18 +00:00
wp-embed.min.js Embeds: Conditionally enqueue wp-embed only if needed and send ready message in case script loads after post embed windows. 2021-11-11 02:49:18 +00:00
wp-emoji-loader.js Emoji: Update the Twemoji library to version 13.1.0. 2021-06-08 22:15:12 +00:00
wp-emoji-loader.min.js Emoji: Update the Twemoji library to version 13.1.0. 2021-06-08 22:15:12 +00:00
wp-emoji-release.min.js Emoji: Update the Twemoji library to version 13.1.0. 2021-06-08 22:15:12 +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 External Libraries: Further fix jQuery deprecations in WordPress core. 2021-02-23 19:45:04 +00:00
wp-lists.min.js Build/Test Tools: Update several devDependencies. 2021-06-08 17:15:15 +00:00
wp-pointer.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-02-16 20:25:03 +00:00
wp-pointer.min.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-02-16 20:25:03 +00:00
wp-sanitize.js
wp-sanitize.min.js Build/Test Tools: Update some devDependencies. 2021-03-18 17:48:23 +00:00
wp-util.js Widgets: Avoid a TypeError when adding a widget in the Customizer. 2021-06-25 14:50:58 +00:00
wp-util.min.js Widgets: Avoid a TypeError when adding a widget in the Customizer. 2021-06-25 14:50:58 +00:00
wpdialog.js
wpdialog.min.js
wplink.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-03-18 19:01:03 +00:00
wplink.min.js Build/Test Tools: Update several devDependencies. 2021-06-08 17:15:15 +00:00
zxcvbn-async.js
zxcvbn-async.min.js Build/Test Tools: Update NPM dependencies. 2021-02-23 16:45:19 +00:00
zxcvbn.min.js