WordPress/wp-includes
desrosj 883e20e3dd Feeds: Avoid fatal error with empty `blog_charset` value.
After the SimplePie library was updated to version `1.8.0` in [59141], an edge case has been discovered where a fatal error can encountered if the `blog_charset` option is missing or empty.

In `fetch_feed()`, this option is retrieved using `get_option()` instead of `get_bloginfo( ‘charset’ )`. The latter will detect this scenario and apply a default value of `UTF-8` and is already used interchangeably throughout Core. This switches to `get_bloginfo( ‘charset’ )` instead to prevent this edge case.

Props david.binda, davidbaumwald, SergeyBiryukov, sabernhardt, azaozz, peterwilsoncc.
Fixes #62354.
Built from https://develop.svn.wordpress.org/trunk@59382


git-svn-id: http://core.svn.wordpress.org/trunk@58768 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-11 17:50:17 +00:00
..
ID3
IXR
PHPMailer
Requests
SimplePie
Text
assets Editor: Update packages for 6.7 RC 3 2024-11-05 12:59:25 +00:00
block-bindings
block-patterns
block-supports
blocks Editor: Update packages for 6.7 RC 4 2024-11-07 15:16:24 +00:00
certificates
css Editor: Update packages for 6.7 RC 4 2024-11-07 15:16:24 +00:00
customize
fonts
html-api HTML API: Improve private method name used by `WP_HTML_Processor::next_token()`. 2024-11-06 19:24:20 +00:00
images
interactivity-api
js Editor: Update packages for 6.7 RC 3 2024-11-05 12:59:25 +00:00
l10n
php-compat
pomo
rest-api Coding Standards: Use `WP_User_Query::get_results()` instead of a private property. 2024-11-05 23:09:20 +00:00
sitemaps
sodium_compat
style-engine
theme-compat
widgets
admin-bar.php
atomlib.php
author-template.php
block-bindings.php
block-editor.php
block-i18n.json
block-patterns.php
block-template-utils.php
block-template.php
blocks.php
bookmark-template.php
bookmark.php
cache-compat.php
cache.php
canonical.php
capabilities.php
category-template.php
category.php
class-IXR.php
class-avif-info.php
class-feed.php
class-http.php
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
class-smtp.php
class-snoopy.php
class-walker-category-dropdown.php
class-walker-category.php
class-walker-comment.php
class-walker-nav-menu.php
class-walker-page-dropdown.php
class-walker-page.php
class-wp-admin-bar.php
class-wp-ajax-response.php
class-wp-application-passwords.php
class-wp-block-bindings-registry.php
class-wp-block-bindings-source.php
class-wp-block-editor-context.php
class-wp-block-list.php
class-wp-block-metadata-registry.php
class-wp-block-parser-block.php
class-wp-block-parser-frame.php
class-wp-block-parser.php
class-wp-block-pattern-categories-registry.php
class-wp-block-patterns-registry.php
class-wp-block-styles-registry.php
class-wp-block-supports.php
class-wp-block-template.php
class-wp-block-templates-registry.php
class-wp-block-type-registry.php
class-wp-block-type.php
class-wp-block.php Editor: Correct the number of arguments for `WP_HTML_Tag_Processor::get_tag()`. 2024-11-06 12:05:15 +00:00
class-wp-classic-to-block-menu-converter.php
class-wp-comment-query.php
class-wp-comment.php Coding Standards: Explicitly return `false` in magic `__isset()` methods. 2024-11-03 23:03:19 +00:00
class-wp-customize-control.php
class-wp-customize-manager.php
class-wp-customize-nav-menus.php
class-wp-customize-panel.php
class-wp-customize-section.php
class-wp-customize-setting.php
class-wp-customize-widgets.php
class-wp-date-query.php
class-wp-dependencies.php
class-wp-dependency.php
class-wp-duotone.php
class-wp-editor.php
class-wp-embed.php
class-wp-error.php
class-wp-exception.php
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
class-wp-feed-cache.php
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
class-wp-image-editor-gd.php
class-wp-image-editor-imagick.php Media: Fix uploading of .heic images. 2024-10-29 01:12:17 +00:00
class-wp-image-editor.php
class-wp-list-util.php
class-wp-locale-switcher.php
class-wp-locale.php
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
class-wp-paused-extensions-storage.php
class-wp-plugin-dependencies.php
class-wp-post-type.php
class-wp-post.php
class-wp-query.php Coding Standards: Explicitly return `false` in magic `__isset()` methods. 2024-11-03 23:03:19 +00:00
class-wp-recovery-mode-cookie-service.php
class-wp-recovery-mode-email-service.php
class-wp-recovery-mode-key-service.php
class-wp-recovery-mode-link-service.php
class-wp-recovery-mode.php Docs: Add missing `void` to DocBlock `@return` types. 2024-11-02 15:01:19 +00:00
class-wp-rewrite.php
class-wp-role.php
class-wp-roles.php
class-wp-script-modules.php
class-wp-scripts.php
class-wp-session-tokens.php
class-wp-simplepie-file.php
class-wp-simplepie-sanitize-kses.php
class-wp-site-query.php
class-wp-site.php
class-wp-styles.php
class-wp-tax-query.php
class-wp-taxonomy.php
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
class-wp-textdomain-registry.php
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 Performance: reuse block metadata in `WP_Theme_JSON::get_valid_block_style_variations()` 2024-11-06 00:44:15 +00:00
class-wp-theme.php
class-wp-token-map.php
class-wp-user-meta-session-tokens.php
class-wp-user-query.php
class-wp-user-request.php
class-wp-user.php
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
class-wp.php
class-wpdb.php
class.wp-dependencies.php
class.wp-scripts.php
class.wp-styles.php
comment-template.php
comment.php Comments: Use a more precise check for disallowed keys on filtered comment data. 2024-10-29 15:38:19 +00:00
compat.php
cron.php
date.php
default-constants.php
default-filters.php
default-widgets.php
deprecated.php Coding Standards: Correct alignment in `dropdown_cats()`. 2024-10-26 21:45:17 +00:00
embed-template.php
embed.php
error-protection.php
feed-atom-comments.php
feed-atom.php
feed-rdf.php
feed-rss.php
feed-rss2-comments.php
feed-rss2.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: Correct `@param` tag in `untrailingslashit()` to match the parameter name. 2024-10-31 23:26:15 +00:00
functions.php Media: Fix variable name in `wp_check_filetype_and_ext()`. 2024-11-06 00:39:18 +00:00
functions.wp-scripts.php
functions.wp-styles.php
general-template.php
global-styles-and-settings.php
http.php Tests: Use better domain for HTTP API invalid hostname test. 2024-10-27 19:05:18 +00:00
https-detection.php
https-migration.php
kses.php
l10n.php
link-template.php
load.php
locale.php
media-template.php
media.php Media: Better variable name and some docs fixes for the new `wp_get_image_editor_output_format()`. 2024-11-05 04:09:18 +00:00
meta.php
ms-blogs.php
ms-default-constants.php
ms-default-filters.php
ms-deprecated.php
ms-files.php
ms-functions.php Docs: Correct `@param` type in `fix_phpmailer_messageid()`. 2024-11-01 00:10:17 +00:00
ms-load.php
ms-network.php
ms-settings.php
ms-site.php
nav-menu-template.php
nav-menu.php
option.php Coding Standards: Ensure `$current` cookie time is `int` in `wp_user_settings()`. 2024-11-07 23:47:16 +00:00
pluggable-deprecated.php
pluggable.php
plugin.php
post-formats.php
post-template.php
post-thumbnail-template.php
post.php
query.php
registration-functions.php
registration.php
rest-api.php
revision.php
rewrite.php
robots-template.php
rss-functions.php
rss.php
script-loader.php
script-modules.php
session.php
shortcodes.php
sitemaps.php
spl-autoload-compat.php
style-engine.php
taxonomy.php
template-canvas.php
template-loader.php
template.php
theme-i18n.json
theme-previews.php
theme-templates.php
theme.json
theme.php
update.php
user.php Coding Standards: Ensure cookie expiration value is an integer in `wp_update_user()`. 2024-11-09 16:30:19 +00:00
vars.php
version.php Feeds: Avoid fatal error with empty `blog_charset` value. 2024-11-11 17:50:17 +00:00
widgets.php
wp-db.php
wp-diff.php