Skip to content

Commit

Permalink
Also for newly added feeds
Browse files Browse the repository at this point in the history
  • Loading branch information
akirk committed Jan 18, 2024
1 parent f541cc6 commit be0d720
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions includes/class-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -1409,6 +1409,10 @@ public function process_admin_edit_friend_feeds() {
}

$feed['active'] = true;
$protocol = wp_parse_url( $feed['url'], PHP_URL_SCHEME );
if ( ! $protocol ) {
$feed['url'] = apply_filters( 'friends_rewrite_incoming_url', 'https://' . $feed['url'], $feed['url'] );
}
$new_feed = $friend->subscribe( $feed['url'], $feed );
if ( is_wp_error( $new_feed ) ) {
do_action( 'friends_process_feed_item_submit_error', $new_feed, $feed );
Expand Down

0 comments on commit be0d720

Please sign in to comment.