Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion includes/abstract/feedzy-rss-feeds-admin-abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,7 @@ private function init_feed( $feed_url, $cache, $sc, $allow_https = FEEDZY_ALLOW_
require_once ABSPATH . WPINC . '/class-wp-feed-cache-transient.php';
require_once ABSPATH . WPINC . '/class-wp-simplepie-file.php';

$feed->set_file_class( 'WP_SimplePie_File' );
$feed->get_registry()->register( SimplePie\File::class, 'WP_SimplePie_File', true );
$default_agent = $this->get_default_user_agent( $feed_url );
$feed->set_useragent( apply_filters( 'http_headers_useragent', $default_agent ) );
if ( false === apply_filters( 'feedzy_disable_db_cache', false, $feed_url ) ) {
Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/specs/classic-block.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ test.describe('Feedzy Classic Block', () => {

await page.getByRole('button', { name: 'Load Feed' }).click();

await page.waitForSelector('.feedzy-validation-results');
await page.waitForSelector('.feedzy-validation-results', { timeout: 30000 });

await expect(
page
Expand Down Expand Up @@ -49,7 +49,7 @@ test.describe('Feedzy Classic Block', () => {

await page.getByRole('button', { name: 'Load Feed' }).click();

await page.waitForSelector('.feedzy-validation-results');
await page.waitForSelector('.feedzy-validation-results', { timeout: 30000 });

await expect(
page
Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/specs/loop.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ test.describe('Feedzy Loop', () => {
.fill('http://invalid-url.com/feed');
await page.getByRole('button', { name: 'Load Feed' }).click();

await page.waitForSelector('.feedzy-validation-results');
await page.waitForSelector('.feedzy-validation-results', { timeout: 30000 });

await expect(
page
Expand All @@ -146,7 +146,7 @@ test.describe('Feedzy Loop', () => {
);
await page.getByRole('button', { name: 'Load Feed' }).click();

await page.waitForSelector('.feedzy-validation-results');
await page.waitForSelector('.feedzy-validation-results', { timeout: 30000 });

await expect(
page
Expand Down
Loading