Skip to content
Merged
Changes from 1 commit
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
8 changes: 6 additions & 2 deletions includes/abstract/feedzy-rss-feeds-admin-abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -697,10 +697,14 @@ public function normalize_urls( $raw ) {
$feed_url = apply_filters( 'feedzy_get_feed_url', $feeds );
if ( is_array( $feed_url ) ) {
foreach ( $feed_url as $index => $url ) {
$feed_url[ $index ] = trim( $this->smart_convert( $url ) );
if ( wp_http_validate_url( $url ) ) {
$feed_url[ $index ] = trim( $this->smart_convert( $url ) );
}
}
} else {
} elseif ( wp_http_validate_url( $feed_url ) ) {
$feed_url = trim( $this->smart_convert( $feed_url ) );
} else {
$feed_url = '';
}

return $feed_url;
Expand Down
Loading