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
This commit is contained in:
Sergey Biryukov 2020-05-08 08:34:21 +00:00
parent 09bcb48557
commit 0d7244226f
1 changed files with 3 additions and 3 deletions

View File

@ -48,7 +48,7 @@ class WP_Widget_RSS extends WP_Widget {
}
$url = ! empty( $instance['url'] ) ? $instance['url'] : '';
while ( stristr( $url, 'http' ) != $url ) {
while ( stristr( $url, 'http' ) !== $url ) {
$url = substr( $url, 1 );
}
@ -72,7 +72,7 @@ class WP_Widget_RSS extends WP_Widget {
$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 @@ class WP_Widget_RSS extends WP_Widget {
* @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 );
}