Changeset 47774 for trunk/src/wp-includes/widgets/class-wp-widget-rss.php
- Timestamp:
- 05/08/2020 08:34:21 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/widgets/class-wp-widget-rss.php
r47550 r47774 49 49 50 50 $url = ! empty( $instance['url'] ) ? $instance['url'] : ''; 51 while ( stristr( $url, 'http' ) != $url ) {51 while ( stristr( $url, 'http' ) !== $url ) { 52 52 $url = substr( $url, 1 ); 53 53 } … … 73 73 } 74 74 $link = strip_tags( $rss->get_permalink() ); 75 while ( stristr( $link, 'http' ) != $link ) {75 while ( stristr( $link, 'http' ) !== $link ) { 76 76 $link = substr( $link, 1 ); 77 77 } … … 115 115 */ 116 116 public function update( $new_instance, $old_instance ) { 117 $testurl = ( isset( $new_instance['url'] ) && ( ! isset( $old_instance['url'] ) || ( $new_instance['url'] != $old_instance['url'] ) ) );117 $testurl = ( isset( $new_instance['url'] ) && ( ! isset( $old_instance['url'] ) || ( $new_instance['url'] !== $old_instance['url'] ) ) ); 118 118 return wp_widget_rss_process( $new_instance, $testurl ); 119 119 }
Note: See TracChangeset
for help on using the changeset viewer.