[wp-trac] [WordPress Trac] #62354: fetch_feed should use `get_bloginfo( 'charset' )` over `get_option( 'blog_charset' )` when setting the output encoding
WordPress Trac
noreply at wordpress.org
Mon Nov 11 10:45:23 UTC 2024
#62354: fetch_feed should use `get_bloginfo( 'charset' )` over `get_option(
'blog_charset' )` when setting the output encoding
--------------------------------------+---------------------
Reporter: david.binda | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.7
Component: Feeds | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+---------------------
Comment (by david.binda):
@peterwilsoncc the fatal error happens when the feed items are being
sanitized, thus they need to be accessed. For instance:
{{{#!php
foreach( $feed->get_items( 0, 1 ) as $item ) {
$src = $item->get_content();
}
}}}
in `Tests_Feed_fetchFeed::test_empty_charset_does_not_trigger_fatal_error`
after the `$feed = fetch_feed( 'https://wordpress.org/news/feed/' );`
should trigger the fatal error.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62354#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list