From 0d7244226f47ac91a0930de21d1c7626e8b44b4b Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 8 May 2020 08:34:21 +0000 Subject: [PATCH] Coding Standards: Use strict comparison in `wp-includes/widgets/class-wp-widget-rss.php`. Props mukesh27. Fixes #50125. git-svn-id: https://develop.svn.wordpress.org/trunk@47774 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/widgets/class-wp-widget-rss.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wp-includes/widgets/class-wp-widget-rss.php b/src/wp-includes/widgets/class-wp-widget-rss.php index 4e2810a17818..385bccfd7ede 100644 --- a/src/wp-includes/widgets/class-wp-widget-rss.php +++ b/src/wp-includes/widgets/class-wp-widget-rss.php @@ -48,7 +48,7 @@ public function widget( $args, $instance ) { } $url = ! empty( $instance['url'] ) ? $instance['url'] : ''; - while ( stristr( $url, 'http' ) != $url ) { + while ( stristr( $url, 'http' ) !== $url ) { $url = substr( $url, 1 ); } @@ -72,7 +72,7 @@ public function widget( $args, $instance ) { $title = strip_tags( $rss->get_title() ); } $link = strip_tags( $rss->get_permalink() ); - while ( stristr( $link, 'http' ) != $link ) { + while ( stristr( $link, 'http' ) !== $link ) { $link = substr( $link, 1 ); } } @@ -114,7 +114,7 @@ public function widget( $args, $instance ) { * @return array Updated settings to save. */ public function update( $new_instance, $old_instance ) { - $testurl = ( isset( $new_instance['url'] ) && ( ! isset( $old_instance['url'] ) || ( $new_instance['url'] != $old_instance['url'] ) ) ); + $testurl = ( isset( $new_instance['url'] ) && ( ! isset( $old_instance['url'] ) || ( $new_instance['url'] !== $old_instance['url'] ) ) ); return wp_widget_rss_process( $new_instance, $testurl ); }