diff -r 34716fd837a4 -r be944660c56a wp/wp-includes/widgets/class-wp-widget-rss.php --- a/wp/wp-includes/widgets/class-wp-widget-rss.php Tue Dec 15 15:52:01 2020 +0100 +++ b/wp/wp-includes/widgets/class-wp-widget-rss.php Wed Sep 21 18:19:35 2022 +0200 @@ -22,9 +22,11 @@ * @since 2.8.0 */ public function __construct() { - $widget_ops = array( + $widget_ops = array( 'description' => __( 'Entries from any RSS or Atom feed.' ), 'customize_selective_refresh' => true, + 'show_instance_in_rest' => true, + ); $control_ops = array( 'width' => 400, @@ -48,7 +50,7 @@ } $url = ! empty( $instance['url'] ) ? $instance['url'] : ''; - while ( stristr( $url, 'http' ) !== $url ) { + while ( ! empty( $url ) && stristr( $url, 'http' ) !== $url ) { $url = substr( $url, 1 ); } @@ -72,7 +74,7 @@ $title = strip_tags( $rss->get_title() ); } $link = strip_tags( $rss->get_permalink() ); - while ( stristr( $link, 'http' ) !== $link ) { + while ( ! empty( $link ) && stristr( $link, 'http' ) !== $link ) { $link = substr( $link, 1 ); } }