Skip to content

Commit

Permalink
Change existing == checks to ===
Browse files Browse the repository at this point in the history
To make the linter happy.
However; since this is exsiting code and not new code, there's always a
slight chance this changes the existing behavior in an unexpected way.
  • Loading branch information
mreishus committed Aug 19, 2021
1 parent d5afd51 commit 332e837
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,7 @@ public static function filter_widget_check_conditions( $conditions ) {

if (
isset( $conditions['match_all'] )
&& $conditions['match_all'] == '1'
&& 1 === $conditions['match_all']
&& ! $condition_result
) {

Expand All @@ -1024,7 +1024,7 @@ public static function filter_widget_check_conditions( $conditions ) {
} elseif (
(
empty( $conditions['match_all'] )
|| $conditions['match_all'] !== '1'
|| 1 !== $conditions['match_all']
)
&& $condition_result
) {
Expand All @@ -1036,10 +1036,10 @@ public static function filter_widget_check_conditions( $conditions ) {

if (
(
'show' == $conditions['action']
'show' === $conditions['action']
&& ! $condition_result
) || (
'hide' == $conditions['action']
'hide' === $conditions['action']
&& $condition_result
)
) {
Expand Down

0 comments on commit 332e837

Please sign in to comment.