WordPress/wp-includes
joedolson 371495c91d Media: Allow uploading images from URLs without extensions.
Enable `download_url()` to fetch and verify file types if the URL does not contain a file extension. This allows URL downloads to handle media endpoints like istockphoto.com that use file IDs and formatting arguments to deliver images.

Props masteradhoc, mitogh, joedolson, hellofromTonya, antpb, audrasjb, navi161, dmsnell.
Fixes #54738.
Built from https://develop.svn.wordpress.org/trunk@59902


git-svn-id: http://core.svn.wordpress.org/trunk@59244 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-03 00:19:23 +00:00
..
assets Editor: Update packages for 6.8 pre-Betas. 2025-02-07 15:46:48 +00:00
block-bindings
block-patterns
block-supports Docs: Docblock improvements in . 2024-12-21 17:23:24 +00:00
blocks Editor: Add remaining query block file. 2025-02-07 16:06:20 +00:00
certificates Security: Introduce Grunt task for updating Root Certificates. 2025-01-30 18:53:27 +00:00
css Uploads: Use the word-wrap-break-word instead of specific CSS on .upload-error-filename. 2025-02-17 22:58:23 +00:00
customize Administration: Replace "Add New {Item}" wording with "Add {Item}" across the administration. 2025-02-08 11:44:24 +00:00
fonts Editor: Load all style variation fonts within the editors. 2024-10-20 23:25:16 +00:00
html-api HTML API: Stop counting no-op seek operations against the max seek count. 2025-02-11 20:04:23 +00:00
ID3
images
interactivity-api Interactivity API: Support length property on strings and arrays on the server 2024-12-02 08:10:17 +00:00
IXR
js Administration: Error messages improvements in WP Admin. 2025-02-08 15:53:17 +00:00
l10n
php-compat
PHPMailer External Libraries: Upgrade PHPMailer to version 6.9.3. 2024-12-03 15:22:18 +00:00
pomo
Requests
rest-api REST API: Improve performance for HEAD requests. 2025-03-02 22:07:25 +00:00
SimplePie External Libraries: Correct the case for wp-includes/SimplePie/src/Gzdecode.php. 2024-09-30 23:27:19 +00:00
sitemaps Coding Standards: Cast wp_count_terms() result to int before using in ceil(). 2024-11-26 21:17:25 +00:00
sodium_compat
style-engine Editor: Avoid unnecessary array_merge in WP_Style_Engine::parse_block_styles(). 2024-11-20 21:29:22 +00:00
Text Code Modernization: Fix trigger_error() with E_USER_ERROR deprecation in Text_Diff_Op::reverse(). 2024-09-27 18:19:17 +00:00
theme-compat
widgets Editor: Change the Text editor label to Code. 2025-01-23 23:54:23 +00:00
admin-bar.php Administration: Capitalize "Edit Site" strings for consistency. 2025-02-20 23:16:20 +00:00
atomlib.php
author-template.php
block-bindings.php
block-editor.php Editor: Update packages for 6.8 pre-Betas. 2025-02-07 15:46:48 +00:00
block-i18n.json
block-patterns.php Editor: Add description for Banners block pattern category. 2024-11-29 22:46:21 +00:00
block-template-utils.php Editor: Add title and description to post format archive block templates. 2025-02-13 20:31:28 +00:00
block-template.php Editor: Warn about empty templates on the frontend for logged in users. 2024-11-22 10:57:19 +00:00
blocks.php Editor: Allow registering block type collections with a single function call. 2025-02-26 19:40:25 +00:00
bookmark-template.php
bookmark.php
cache-compat.php
cache.php
canonical.php
capabilities.php Block Bindings: Fix panel not appearing in custom post types. 2024-10-15 14:13:19 +00:00
category-template.php
category.php Docs: Improve @return docblock section for get_category(). 2025-01-24 23:28:23 +00:00
class-avif-info.php
class-feed.php External Libraries: Update the SimplePie library to version 1.8.0. 2024-09-30 22:50:19 +00:00
class-http.php
class-IXR.php General: Stop direct loading of files in /wp-includes that should only be included. 2025-01-22 19:48:25 +00:00
class-json.php
class-oembed.php
class-phpass.php
class-phpmailer.php
class-pop3.php Docs: Adjust comments about set_time_limit() per the documentation standards. 2024-10-25 20:26:20 +00:00
class-requests.php
class-simplepie.php External Libraries: Update the SimplePie library to version 1.8.0. 2024-09-30 22:50:19 +00:00
class-smtp.php
class-snoopy.php
class-walker-category-dropdown.php
class-walker-category.php
class-walker-comment.php
class-walker-nav-menu.php Menus: Improve performance by calling get_privacy_policy_url() once per Walker_Nav_Menu instance rather than for every nav menu item. 2025-01-21 21:26:23 +00:00
class-walker-page-dropdown.php
class-walker-page.php
class-wp-admin-bar.php
class-wp-ajax-response.php
class-wp-application-passwords.php Security: Switch to using bcrypt for hashing user passwords and BLAKE2b for hashing application passwords and security keys. 2025-02-17 11:24:21 +00:00
class-wp-block-bindings-registry.php Block Bindings: Adds context needed by sources during its processing 2024-09-23 12:35:15 +00:00
class-wp-block-bindings-source.php
class-wp-block-editor-context.php
class-wp-block-list.php
class-wp-block-metadata-registry.php Editor: Allow registering block type collections with a single function call. 2025-02-26 19:40:25 +00:00
class-wp-block-parser-block.php
class-wp-block-parser-frame.php Editor: Update packages for 6.7 Beta 1. 2024-09-20 01:55:35 +00:00
class-wp-block-parser.php
class-wp-block-pattern-categories-registry.php
class-wp-block-patterns-registry.php Block Hooks: apply_block_hooks_to_content in Patterns, Templates. 2024-09-27 09:20:18 +00:00
class-wp-block-styles-registry.php Editor: Add a fallback to WP_Block_Styles_Registry if the label is missing. 2025-02-04 08:42:25 +00:00
class-wp-block-supports.php Editor: Default attribute value not used with get_block_wrapper_attributes 2024-09-26 12:47:16 +00:00
class-wp-block-template.php Editor: Add plugin template registration API and improve theme overrides for plugin-registered templates 2024-09-20 02:07:12 +00:00
class-wp-block-templates-registry.php Editor: Fix block template registration failing for custom post types containing underscore characters. 2025-01-30 21:19:25 +00:00
class-wp-block-type-registry.php
class-wp-block-type.php
class-wp-block.php Editor: Introduce wp_should_load_block_assets_on_demand() with filter 'should_load_block_assets_on_demand'. 2025-02-14 18:38:21 +00:00
class-wp-classic-to-block-menu-converter.php
class-wp-comment-query.php
class-wp-comment.php Coding Standards: Correct default values in WP_Comment to match the documented type. 2025-02-11 13:40:30 +00:00
class-wp-customize-control.php Docs: Various Docblock fixes in wp-includes/class-wp-customize-control.php, as per WP Docs standards; 2025-02-08 12:00:19 +00:00
class-wp-customize-manager.php General: Error messages improvements in /wp-includes files. 2025-02-08 16:00:19 +00:00
class-wp-customize-nav-menus.php Customize: Accessibility: Restore heading semantics in sections. 2025-02-14 20:34:21 +00:00
class-wp-customize-panel.php General: Stop direct loading of files in /wp-includes that should only be included. 2025-01-22 19:48:25 +00:00
class-wp-customize-section.php Administration: A11y: Fix accordion accessibility. 2024-10-13 19:09:12 +00:00
class-wp-customize-setting.php General: Stop direct loading of files in /wp-includes that should only be included. 2025-01-22 19:48:25 +00:00
class-wp-customize-widgets.php Customize: Show sidebar's description below its name in Customizer Widgets sidebar list. 2025-01-21 22:38:23 +00:00
class-wp-date-query.php Coding Standards: Cast gmdate( 'Z' ) to an integer before addition. 2024-11-27 11:40:18 +00:00
class-wp-dependencies.php
class-wp-dependency.php
class-wp-duotone.php
class-wp-editor.php Editor: Change the Text editor label to Code. 2025-01-23 23:54:23 +00:00
class-wp-embed.php
class-wp-error.php
class-wp-exception.php Code Modernization: Fix trigger_error() with E_USER_ERROR deprecation in wp_trigger_error(). 2024-09-27 19:28:14 +00:00
class-wp-fatal-error-handler.php Site Health: Add a link to support forums in the message displayed for a critical error. 2024-10-22 10:16:16 +00:00
class-wp-feed-cache-transient.php External Libraries: Update the SimplePie library to version 1.8.0. 2024-09-30 22:50:19 +00:00
class-wp-feed-cache.php External Libraries: Update the SimplePie library to version 1.8.0. 2024-09-30 22:50:19 +00:00
class-wp-hook.php
class-wp-http-cookie.php
class-wp-http-curl.php
class-wp-http-encoding.php
class-wp-http-ixr-client.php
class-wp-http-proxy.php
class-wp-http-requests-hooks.php
class-wp-http-requests-response.php
class-wp-http-response.php
class-wp-http-streams.php
class-wp-http.php General: Stop direct loading of files in /wp-includes that should only be included. 2025-01-22 19:48:25 +00:00
class-wp-image-editor-gd.php Media: improve filter to enable setting output quality by image size. 2024-11-29 23:48:15 +00:00
class-wp-image-editor-imagick.php Media: improve Imagick handling of colors and alpha channel for PNG image uploads. 2025-01-07 22:35:23 +00:00
class-wp-image-editor.php Media: Support generating filenames without a suffix. 2025-02-21 20:25:24 +00:00
class-wp-list-util.php
class-wp-locale-switcher.php I18N: Mail: Make PHPMailer messages translatable. 2025-01-08 12:54:18 +00:00
class-wp-locale.php Date/Time: Add sanitization to WP_Locale::get_month(). 2025-02-25 22:40:22 +00:00
class-wp-matchesmapregex.php
class-wp-meta-query.php
class-wp-metadata-lazyloader.php
class-wp-navigation-fallback.php
class-wp-network-query.php
class-wp-network.php
class-wp-object-cache.php
class-wp-oembed-controller.php
class-wp-oembed.php Embeds: Revert [59883]. 2025-02-28 13:30:21 +00:00
class-wp-paused-extensions-storage.php
class-wp-phpmailer.php I18N: Mail: Make PHPMailer messages translatable. 2025-01-08 12:54:18 +00:00
class-wp-plugin-dependencies.php
class-wp-post-type.php Administration: Replace missed references of "Add New" in WP_Post_Type class. 2025-02-09 11:09:21 +00:00
class-wp-post.php Coding Standards: Correct default values in WP_Post to match the documented type. 2025-02-12 18:11:25 +00:00
class-wp-query.php Coding Standards: Use strict comparison in WP_Query::the_comment() and ::have_comments(). 2025-02-10 10:51:25 +00:00
class-wp-recovery-mode-cookie-service.php
class-wp-recovery-mode-email-service.php
class-wp-recovery-mode-key-service.php Security: Switch to using bcrypt for hashing user passwords and BLAKE2b for hashing application passwords and security keys. 2025-02-17 11:24:21 +00:00
class-wp-recovery-mode-link-service.php
class-wp-recovery-mode.php Docs: Various improvements to inline documentation. 2025-02-23 11:11:21 +00:00
class-wp-rewrite.php Docs: Fix typo in a comment in WP_Rewrite::refresh_rewrite_rules(). 2024-10-19 23:54:18 +00:00
class-wp-role.php
class-wp-roles.php
class-wp-script-modules.php Docs: Correct formatting for script module data filter documentation examples. 2024-12-11 15:20:18 +00:00
class-wp-scripts.php
class-wp-session-tokens.php Security: Explicitly require the hash PHP extension and add requirement checks during installation and upgrade. 2025-02-11 11:14:21 +00:00
class-wp-simplepie-file.php External Libraries: Update the SimplePie library to version 1.8.0. 2024-09-30 22:50:19 +00:00
class-wp-simplepie-sanitize-kses.php General: Stop direct loading of files in /wp-includes that should only be included. 2025-01-22 19:48:25 +00:00
class-wp-site-query.php
class-wp-site.php
class-wp-speculation-rules.php General: Add speculative loading support via the Speculation Rules API. 2025-02-18 22:32:22 +00:00
class-wp-styles.php
class-wp-tax-query.php
class-wp-taxonomy.php Administration: Replace "Add New {Item}" wording with "Add {Item}" across the administration. 2025-02-08 11:44:24 +00:00
class-wp-term-query.php Taxonomy: Remove count references from WP_Term_Query. 2024-10-30 22:34:19 +00:00
class-wp-term.php
class-wp-text-diff-renderer-inline.php
class-wp-text-diff-renderer-table.php General: Stop direct loading of files in /wp-includes that should only be included. 2025-01-22 19:48:25 +00:00
class-wp-textdomain-registry.php i18n: Account for load_*_textdomain() after JIT loading. 2024-11-20 02:50:24 +00:00
class-wp-theme-json-data.php
class-wp-theme-json-resolver.php Theme JSON Resolver: remove theme json merge in resolve_theme_file_uris 2024-11-04 02:34:16 +00:00
class-wp-theme-json-schema.php
class-wp-theme-json.php Themes: Support :focus-visible in theme.json. 2025-02-21 16:48:22 +00:00
class-wp-theme.php Themes: Allow pattern files to be organized into sub-folders. 2025-02-26 17:01:26 +00:00
class-wp-token-map.php
class-wp-url-pattern-prefixer.php General: Add speculative loading support via the Speculation Rules API. 2025-02-18 22:32:22 +00:00
class-wp-user-meta-session-tokens.php
class-wp-user-query.php Docs: Add missing single quote in WP_User_Query::prepare_query() DocBlock. 2024-12-19 10:24:23 +00:00
class-wp-user-request.php Security: Switch to using bcrypt for hashing user passwords and BLAKE2b for hashing application passwords and security keys. 2025-02-17 11:24:21 +00:00
class-wp-user.php Security: Switch to using bcrypt for hashing user passwords and BLAKE2b for hashing application passwords and security keys. 2025-02-17 11:24:21 +00:00
class-wp-walker.php
class-wp-widget-factory.php
class-wp-widget.php Docs: Add missing void to DocBlock @return types. 2024-11-02 15:01:19 +00:00
class-wp-xmlrpc-server.php General: Error messages improvements in /wp-includes files. 2025-02-08 16:00:19 +00:00
class-wp.php Posts, Post Types: Add no-cache headers to password protected posts. 2025-01-29 18:12:25 +00:00
class-wpdb.php Security: Explicitly require the hash PHP extension and add requirement checks during installation and upgrade. 2025-02-11 11:14:21 +00:00
class.wp-dependencies.php
class.wp-scripts.php
class.wp-styles.php
comment-template.php Coding Standards: Use strict comparison in wp-includes/comment-template.php. 2024-12-08 23:43:21 +00:00
comment.php Coding Standards: Use strict comparison in wp_insert_comment(). 2025-03-02 19:48:21 +00:00
compat.php Security: Explicitly require the hash PHP extension and add requirement checks during installation and upgrade. 2025-02-11 11:14:21 +00:00
cron.php Cron API: Introduce the wp_next_scheduled filter which allows overriding the timestamp for the next scheduled event for the given hook. 2025-02-14 19:37:24 +00:00
date.php
default-constants.php Bundled Themes: Initial import of the Twenty Twenty-Five default theme. 2024-09-30 23:58:16 +00:00
default-filters.php Block Hooks: Add function to encapsulate wrapping in ad-hoc parent. 2025-02-19 14:52:22 +00:00
default-widgets.php General: Stop direct loading of files in /wp-includes that should only be included. 2025-01-22 19:48:25 +00:00
deprecated.php Accessibility: Globally update .screen-reader-text class. 2025-02-17 17:49:20 +00:00
embed-template.php
embed.php Posts, Post Types: Embeds: Add new embeddable argument to post types. 2025-01-24 13:32:21 +00:00
error-protection.php
feed-atom-comments.php
feed-atom.php General: Stop direct loading of files in /wp-includes that should only be included. 2025-01-22 19:48:25 +00:00
feed-rdf.php
feed-rss2-comments.php
feed-rss2.php
feed-rss.php
feed.php Feeds: Avoid fatal error with empty blog_charset value. 2024-11-11 17:50:17 +00:00
fonts.php Editor: Update Google Fonts API endpoint for WordPress 6.7. 2024-10-23 22:39:17 +00:00
formatting.php Docs: Update comments in wp-includes/formatting.php per the documentation standards. 2025-02-05 23:53:25 +00:00
functions.php General: Fix force_ssl_admin() to always return bool. 2025-02-17 15:32:22 +00:00
functions.wp-scripts.php
functions.wp-styles.php
general-template.php Docs: Correct the type for the_modified_date filter parameter. 2025-02-18 08:04:23 +00:00
global-styles-and-settings.php Editor: Introduce wp_should_load_block_assets_on_demand() with filter 'should_load_block_assets_on_demand'. 2025-02-14 18:38:21 +00:00
http.php Tests: Use better domain for HTTP API invalid hostname test. 2024-10-27 19:05:18 +00:00
https-detection.php Docs: Various improvements to inline documentation. 2025-02-24 13:43:23 +00:00
https-migration.php
kses.php Formatting: Preserve target="_blank" in Biographical Info and Category Description. 2025-01-21 22:59:18 +00:00
l10n.php Coding Standards: Add missing global variable in determine_locale() docblock. 2025-01-28 09:46:29 +00:00
link-template.php Docs: Various improvements to inline documentation. 2025-02-24 13:43:23 +00:00
load.php Security: Explicitly require the hash PHP extension and add requirement checks during installation and upgrade. 2025-02-11 11:14:21 +00:00
locale.php
media-template.php Uploads: Use the word-wrap-break-word instead of specific CSS on .upload-error-filename. 2025-02-17 22:58:23 +00:00
media.php Docs: Various improvements to inline documentation. 2025-02-24 13:43:23 +00:00
meta.php Coding Standards: Rename variable in update_meta_cache() for accuracy. 2025-02-23 21:53:26 +00:00
ms-blogs.php General: Stop direct loading of files in /wp-includes that should only be included. 2025-01-22 19:48:25 +00:00
ms-default-constants.php
ms-default-filters.php
ms-deprecated.php
ms-files.php Upload: Remove redundant check for ABSPATH in wp-admin/async-upload.php. 2025-01-16 16:18:24 +00:00
ms-functions.php Security: Add the SensitiveParameter attribute to sensitive parameters. 2025-02-03 19:52:24 +00:00
ms-load.php
ms-network.php
ms-settings.php General: Stop direct loading of files in /wp-includes that should only be included. 2025-01-22 19:48:25 +00:00
ms-site.php Options/Meta APIs: Document type juggling of meta data. 2025-01-17 00:12:26 +00:00
nav-menu-template.php General: Stop direct loading of files in /wp-includes that should only be included. 2025-01-22 19:48:25 +00:00
nav-menu.php
option.php Docs: Various improvements to inline documentation. 2025-02-24 13:43:23 +00:00
pluggable-deprecated.php Security: Add the SensitiveParameter attribute to sensitive parameters. 2025-02-03 19:52:24 +00:00
pluggable.php Security: Reintroduce support for passwords hashed with MD5. 2025-02-28 18:53:23 +00:00
plugin.php
post-formats.php
post-template.php Docs: Correct DocBlock formatting for the_password_form filter. 2025-02-04 00:32:23 +00:00
post-thumbnail-template.php Docs: Update parameter type hints to include null for post thumbnail functions. 2024-12-20 23:35:23 +00:00
post.php Editor: Set new default rendering mode for Pages. 2025-02-27 23:10:23 +00:00
query.php
registration-functions.php
registration.php
rest-api.php REST API: Exit gracefully for malformed URLs. 2025-02-27 23:19:25 +00:00
revision.php Revisions: Use WP_Query in wp_get_post_autosave. 2025-01-27 23:07:23 +00:00
rewrite.php
robots-template.php
rss-functions.php
rss.php
script-loader.php Docs: Various improvements to inline documentation. 2025-03-02 00:43:23 +00:00
script-modules.php Docs: Fix typos in a comment in wp_default_script_modules(). 2024-10-13 18:49:16 +00:00
session.php
shortcodes.php
sitemaps.php
speculative-loading.php General: Allow speculative loading opt-out CSS classes to be applied on parent element, e.g. at the block level. 2025-02-27 22:14:25 +00:00
spl-autoload-compat.php
style-engine.php
taxonomy.php Administration: Replace "Add New {Item}" wording with "Add {Item}" across the administration. 2025-02-08 11:44:24 +00:00
template-canvas.php
template-loader.php
template.php
theme-i18n.json I18N: Update theme.json i18n schema with latest changes from Gutenberg. 2025-01-08 12:36:23 +00:00
theme-previews.php
theme-templates.php Accessibility: Globally update .screen-reader-text class. 2025-02-17 17:49:20 +00:00
theme.json
theme.php Docs: Various improvements to inline documentation. 2025-02-23 11:11:21 +00:00
update.php Docs: Various improvements to inline documentation. 2025-03-02 00:43:23 +00:00
user.php Users: Add pre-flight filter to count_many_users_posts(). 2025-03-02 23:06:20 +00:00
vars.php General: Stop direct loading of files in /wp-includes that should only be included. 2025-01-22 19:48:25 +00:00
version.php Media: Allow uploading images from URLs without extensions. 2025-03-03 00:19:23 +00:00
widgets.php Docs: Various Docblock fixes in wp-includes/widgets.php, as per WP Docs standards; 2025-01-24 21:20:23 +00:00
wp-db.php
wp-diff.php General: Stop direct loading of files in /wp-includes that should only be included. 2025-01-22 19:48:25 +00:00