WordPress/wp-includes
Andrew Ozz 1de168e016 Media: Improve handling of cases where an uploaded image matches exactly a defined intermediate size. In most of these cases the original image has been edited by the user and is "web ready", there is no need for an identical intermediate image.
Introduces the `wp_image_resize_identical_dimensions` filter so plugins and themes can determine whether a new image with identical dimensions should be created, defaults to false.

Props wpdennis, HKandulla, galbaras, azaozz.
See #32437.
Built from https://develop.svn.wordpress.org/trunk@46077


git-svn-id: http://core.svn.wordpress.org/trunk@45889 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-09-07 01:34:55 +00:00
..
blocks Accessibility: Remove post format filter links from format icons in the Posts list table. 2019-03-21 15:32:01 +00:00
certificates
css Accessibility: Improve focus styles for legacy modal dialogs powered by jQuery UI. 2019-09-02 21:49:55 +00:00
customize I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
fonts Administration: Fix Dashicon backwards compatibility issues. 2019-03-27 19:59:52 +00:00
ID3
images
IXR Date/Time: Replace all instances of date() with gmdate(). 2019-05-26 00:12:54 +00:00
js Widgets: Fix "jumpiness" when reordering widgets by dragging them. 2019-09-04 21:49:59 +00:00
pomo Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in wp-includes. 2019-07-02 23:42:58 +00:00
random_compat
Requests
rest-api REST API: Mark WP_REST_Users_Controller::update_current_item() and ::delete_current_item() as public. 2019-09-05 23:18:55 +00:00
SimplePie
sodium_compat Upgrade/Install: Update sodium_compat to v1.10.0. 2019-05-17 10:58:51 +00:00
Text
theme-compat I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
widgets I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
admin-bar.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
atomlib.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
author-template.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
blocks.php Docs: Remove unused @global reference in do_blocks() DocBlock. 2019-05-24 01:05:52 +00:00
bookmark-template.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
bookmark.php Coding Standards: Rename $r variable used with wp_parse_args() to $parsed_args for clarity. 2019-07-25 00:48:58 +00:00
cache.php Docs: Correct type for WP_Object_Cache::$blog_prefix. 2019-04-11 20:10:53 +00:00
canonical.php Docs: Add missing description for $wp_query and $wp_the_query globals. 2019-08-04 01:59:56 +00:00
capabilities.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
category-template.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
category.php I18N: Improve translator comments. 2019-09-01 17:13:59 +00:00
class-feed.php
class-http.php Coding Standards: Rename $r variable used with wp_parse_args() to $parsed_args for clarity. 2019-07-25 00:48:58 +00:00
class-IXR.php
class-json.php PHP 7.4 compatibility fix / accessing arrays/string using curly brace syntax 2019-08-03 20:21:55 +00:00
class-oembed.php Coding Standards: Move wp-includes/class-oembed.php to wp-includes/class-wp-oembed.php. 2019-07-19 04:32:57 +00:00
class-phpass.php
class-phpmailer.php
class-pop3.php PHP 7.4 compatibility fix / accessing arrays/string using curly brace syntax 2019-08-03 20:21:55 +00:00
class-requests.php
class-simplepie.php
class-smtp.php Docs: Correct various spelling mistakes. 2019-03-13 19:32:53 +00:00
class-snoopy.php
class-walker-category-dropdown.php
class-walker-category.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-walker-comment.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-walker-nav-menu.php Menus: Set better default for $args parameter in Walker_Nav_Menu methods, to match the documented parameter type. 2019-06-14 11:26:52 +00:00
class-walker-page-dropdown.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-walker-page.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-wp-admin-bar.php Docs: Add a missing return type. 2019-08-16 19:35:58 +00:00
class-wp-ajax-response.php Coding Standards: Rename $r variable used with wp_parse_args() to $parsed_args for clarity. 2019-07-25 00:48:58 +00:00
class-wp-block-parser.php Block Editor: Update WordPress Packages to solve PHP 5.2.2 parser incompatibility. 2019-02-07 09:02:49 +00:00
class-wp-block-type-registry.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-wp-block-type.php
class-wp-comment-query.php Coding Standards: Fix all WordPress.DB.PreparedSQLPlaceholders issues. 2019-07-05 05:43:55 +00:00
class-wp-comment.php
class-wp-customize-control.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-wp-customize-manager.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-wp-customize-nav-menus.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-wp-customize-panel.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-wp-customize-section.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-wp-customize-setting.php Docs: Correct spelling in various comments and DocBlocks, per the conventions in Core Contributor Handbook. 2019-04-17 13:26:51 +00:00
class-wp-customize-widgets.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-wp-date-query.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-wp-dependency.php Coding Standards: Fix instances of WordPress.PHP.NoSilencedErrors.Discouraged. 2019-07-09 05:45:58 +00:00
class-wp-editor.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-wp-embed.php Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in wp-includes. 2019-07-02 23:42:58 +00:00
class-wp-error.php
class-wp-fatal-error-handler.php Bootstrap/Load: Prevent PHP errors when a drop-in triggers fatal error protection. 2019-05-15 18:19:51 +00:00
class-wp-feed-cache-transient.php Code is Poetry. 2017-11-30 23:11:00 +00:00
class-wp-feed-cache.php
class-wp-hook.php Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in wp-includes. 2019-07-02 23:42:58 +00:00
class-wp-http-cookie.php Docs: Correct @type annotation for WP_HTTP_Cookie::$expires. 2019-08-05 07:56:56 +00:00
class-wp-http-curl.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-wp-http-encoding.php Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in wp-includes. 2019-07-02 23:42:58 +00:00
class-wp-http-ixr-client.php
class-wp-http-proxy.php
class-wp-http-requests-hooks.php Coding Standards: Mark the handful of hook names with uppercase characters or hyphens as ignored. 2019-07-05 01:45:56 +00:00
class-wp-http-requests-response.php HTTP: Add support for the host-only flag to Wp_Http_Cookie. 2019-04-08 05:32:51 +00:00
class-wp-http-response.php Coding Standards: Fix/ignore the WordPress.NamingConventions.ValidFunctionName violations. 2019-07-01 08:01:57 +00:00
class-wp-http-streams.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-wp-image-editor-gd.php Docs: Improve and update the description of multi_resize() to explain changes and expected use. 2019-08-25 22:21:58 +00:00
class-wp-image-editor-imagick.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-wp-image-editor.php Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in wp-includes. 2019-07-02 23:42:58 +00:00
class-wp-list-util.php Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in wp-includes. 2019-07-02 23:42:58 +00:00
class-wp-locale-switcher.php Docs: Add missing description for $wp_locale global. 2019-08-04 01:46:55 +00:00
class-wp-locale.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-wp-matchesmapregex.php
class-wp-meta-query.php Coding Standards: Fix all WordPress.DB.PreparedSQLPlaceholders issues. 2019-07-05 05:43:55 +00:00
class-wp-metadata-lazyloader.php
class-wp-network-query.php Docs: Add missing description for $wpdb, $wp_db_version, and $wp_current_db_version globals. 2019-08-04 01:12:56 +00:00
class-wp-network.php Multisite: Improve performance by caching not found lookups for sites and networks. 2019-08-29 12:42:56 +00:00
class-wp-oembed-controller.php Coding Standards: Move wp-includes/class-oembed.php to wp-includes/class-wp-oembed.php. 2019-07-19 04:32:57 +00:00
class-wp-oembed.php General: First pass at replacing Codex URLs with a corresponding HelpHub or DevHub article. 2019-07-25 22:45:57 +00:00
class-wp-paused-extensions-storage.php Bootstrap/Load: Introduce a recovery mode for fixing fatal errors. 2019-03-21 21:53:51 +00:00
class-wp-post-type.php Docs: Add missing description for $wp_rewrite global. 2019-08-04 01:19:56 +00:00
class-wp-post.php Coding Standards: Use strict comparison in WP_Post where possible. 2019-03-15 21:55:50 +00:00
class-wp-query.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-wp-recovery-mode-cookie-service.php Bootstrap/Load: Set expiration of the recovery mode cookie to the same amount of time for which the token in it is valid: a week by default. 2019-06-17 19:17:54 +00:00
class-wp-recovery-mode-email-service.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-wp-recovery-mode-key-service.php Bootstrap/Load: Allow more than one recovery link to be valid at a time. 2019-04-16 05:09:51 +00:00
class-wp-recovery-mode-link-service.php Bootstrap/Load: Allow more than one recovery link to be valid at a time. 2019-04-16 05:09:51 +00:00
class-wp-recovery-mode.php Bootstrap/Load: Return a 403 error code when the recovery mode cookie is invalid or expired, or the exit recovery mode nonce check failed. 2019-06-17 18:37:55 +00:00
class-wp-rewrite.php Docs: Add missing description for $wp global. 2019-08-04 01:28:55 +00:00
class-wp-role.php
class-wp-roles.php
class-wp-session-tokens.php
class-wp-simplepie-file.php
class-wp-simplepie-sanitize-kses.php Code is Poetry. 2017-11-30 23:11:00 +00:00
class-wp-site-query.php Docs: Add missing description for $wpdb, $wp_db_version, and $wp_current_db_version globals. 2019-08-04 01:12:56 +00:00
class-wp-site.php Multisite: Improve performance by caching not found lookups for sites and networks. 2019-08-29 12:42:56 +00:00
class-wp-tax-query.php Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in wp-includes. 2019-07-02 23:42:58 +00:00
class-wp-taxonomy.php Docs: Add missing description for $wp global. 2019-08-04 01:28:55 +00:00
class-wp-term-query.php Taxonomy: Ensure consistency of hide_empty in term queries when taxonomy is excluded. 2019-08-23 16:05:56 +00:00
class-wp-term.php
class-wp-text-diff-renderer-inline.php
class-wp-text-diff-renderer-table.php Accessibility: Improve the differences between revisions. 2019-08-03 15:46:54 +00:00
class-wp-theme.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-wp-user-meta-session-tokens.php
class-wp-user-query.php Docs: Correct and improve inline docs relating to caching, terms, meta, and some misc tweaks. 2019-08-30 11:36:08 +00:00
class-wp-user-request.php Privacy tools: 2019-06-10 23:54:53 +00:00
class-wp-user.php Code Modernisation: Introduce the spread operator in WP_User. 2019-07-11 23:48:56 +00:00
class-wp-walker.php Code Modernisation: Revert [45624]. 2019-07-15 07:04:59 +00:00
class-wp-widget-factory.php
class-wp-widget.php Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in wp-includes. 2019-07-02 23:42:58 +00:00
class-wp-xmlrpc-server.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
class-wp.php Docs: Add missing description for $wp_query and $wp_the_query globals. 2019-08-04 01:59:56 +00:00
class.wp-dependencies.php Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in wp-includes. 2019-07-02 23:42:58 +00:00
class.wp-scripts.php Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in wp-includes. 2019-07-02 23:42:58 +00:00
class.wp-styles.php Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in wp-includes. 2019-07-02 23:42:58 +00:00
comment-template.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
comment.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
compat.php Code Modernisation: Document when the Hash polyfills can be removed. 2019-07-15 05:14:55 +00:00
cron.php General: First pass at replacing Codex URLs with a corresponding HelpHub or DevHub article. 2019-07-25 22:45:57 +00:00
date.php Coding Standards: Move wp-includes/date.php to wp-includes/class-wp-date-query.php. 2019-07-25 23:31:56 +00:00
default-constants.php Coding Standards: Fix instances of WordPress.PHP.NoSilencedErrors.Discouraged. 2019-07-09 05:45:58 +00:00
default-filters.php Media: Add two new intermediate image sizes, 1536px and 2048px. They are meant to enhance the way WordPress displays images on the front-end on larger, high-density devices. They make it possible to generate more suitable srcset and sizes attributes, and not use the original, often non-optimized image. 2019-09-05 22:27:58 +00:00
default-widgets.php
deprecated.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
embed-template.php
embed.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
error-protection.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
feed-atom-comments.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
feed-atom.php Feeds: improve structure and naming of feed build date helper function. 2019-04-18 17:08:52 +00:00
feed-rdf.php Feeds: improve structure and naming of feed build date helper function. 2019-04-18 17:08:52 +00:00
feed-rss2-comments.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
feed-rss2.php Feeds: improve structure and naming of feed build date helper function. 2019-04-18 17:08:52 +00:00
feed-rss.php Feeds: improve structure and naming of feed build date helper function. 2019-04-18 17:08:52 +00:00
feed.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
formatting.php Improve handling the existing rel attribute in wp_rel_nofollow_callback(). 2019-09-04 17:37:55 +00:00
functions.php Media: Improve handling of cases where an uploaded image matches exactly a defined intermediate size. In most of these cases the original image has been edited by the user and is "web ready", there is no need for an identical intermediate image. 2019-09-07 01:34:55 +00:00
functions.wp-scripts.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
functions.wp-styles.php
general-template.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
http.php Coding Standards: Fix instances of WordPress.PHP.NoSilencedErrors.Discouraged. 2019-07-09 05:45:58 +00:00
kses.php Fix for URL sanitization that can lead to cross-site scripting (XSS) attacks. 2019-09-04 17:52:56 +00:00
l10n.php Docs: Add missing description for $wp_locale_switcher global. 2019-08-04 01:47:55 +00:00
link-template.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
load.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
locale.php
media-template.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
media.php Media: Improve handling of cases where an uploaded image matches exactly a defined intermediate size. In most of these cases the original image has been edited by the user and is "web ready", there is no need for an identical intermediate image. 2019-09-07 01:34:55 +00:00
meta.php Docs: Correct and improve inline docs relating to caching, terms, meta, and some misc tweaks. 2019-08-30 11:36:08 +00:00
ms-blogs.php Networks and Sites: Improve documentation and variable naming in switch_to_blog() and restore_current_blog(). 2019-08-14 14:29:56 +00:00
ms-default-constants.php
ms-default-filters.php
ms-deprecated.php Docs: Add missing description for $wpdb, $wp_db_version, and $wp_current_db_version globals. 2019-08-04 01:12:56 +00:00
ms-files.php
ms-functions.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
ms-load.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
ms-network.php
ms-settings.php
ms-site.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
nav-menu-template.php Docs: Add missing description for $wp_query and $wp_the_query globals. 2019-08-04 01:59:56 +00:00
nav-menu.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
option.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
pluggable-deprecated.php
pluggable.php Improve URL validation in wp_validate_redirect(). 2019-09-04 16:57:56 +00:00
plugin.php General: First pass at replacing Codex URLs with a corresponding HelpHub or DevHub article. 2019-07-25 22:45:57 +00:00
post-formats.php Docs: Add missing description for $wp_rewrite global. 2019-08-04 01:19:56 +00:00
post-template.php Remove _convert_urlencoded_to_entities() from the get_the_content() callback. 2019-09-04 16:04:56 +00:00
post-thumbnail-template.php Docs: Add missing description for $wp_query and $wp_the_query globals. 2019-08-04 01:59:56 +00:00
post.php Media: Add handling for "BIG" images. When the users upload a big image, typically a photo, scale it down to make it suitable for web use. Then use the scaled image as the "full" size, and keep the originally uploaded image for creating high quality sub-sizes in the future and in case the users want to download it later. 2019-09-07 01:07:55 +00:00
query.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
registration-functions.php
registration.php
rest-api.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
revision.php Coding Standards: Fix all WordPress.CodeAnalysis.AssignmentInCondition issues. 2019-07-05 03:14:56 +00:00
rewrite.php Docs: Add missing description for $wp global. 2019-08-04 01:28:55 +00:00
rss-functions.php
rss.php
script-loader.php Uploads: Improve the error message shown when all attempts to create image sub-sizes fail. 2019-09-06 23:48:55 +00:00
session.php
shortcodes.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
spl-autoload-compat.php Code Modernisation: Remove the SPL autoloader polyfill. 2019-07-15 05:11:56 +00:00
taxonomy.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
template-loader.php Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in wp-includes. 2019-07-02 23:42:58 +00:00
template.php Docs: Add missing description for $post global. 2019-08-04 12:28:56 +00:00
theme.php I18N: Improve translator comments. 2019-09-01 17:13:59 +00:00
update.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
user.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
vars.php General: First pass at replacing Codex URLs with a corresponding HelpHub or DevHub article. 2019-07-25 22:45:57 +00:00
version.php Media: Improve handling of cases where an uploaded image matches exactly a defined intermediate size. In most of these cases the original image has been edited by the user and is "web ready", there is no need for an identical intermediate image. 2019-09-07 01:34:55 +00:00
widgets.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
wlwmanifest.xml
wp-db.php I18N: Capitalize translator comments consistently, add trailing punctuation. 2019-09-03 00:41:05 +00:00
wp-diff.php