Changeset 51107 for trunk/src/wp-includes/widgets/class-wp-widget-rss.php
- Timestamp:
- 06/08/2021 07:34:28 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/widgets/class-wp-widget-rss.php
r51007 r51107 51 51 52 52 $url = ! empty( $instance['url'] ) ? $instance['url'] : ''; 53 while ( stristr( $url, 'http' ) !== $url ) {53 while ( ! empty( $url ) && stristr( $url, 'http' ) !== $url ) { 54 54 $url = substr( $url, 1 ); 55 55 } … … 75 75 } 76 76 $link = strip_tags( $rss->get_permalink() ); 77 while ( stristr( $link, 'http' ) !== $link ) {77 while ( ! empty( $link ) && stristr( $link, 'http' ) !== $link ) { 78 78 $link = substr( $link, 1 ); 79 79 }
Note: See TracChangeset
for help on using the changeset viewer.