diff --git a/src/wp-admin/includes/class-wp-links-list-table.php b/src/wp-admin/includes/class-wp-links-list-table.php
index ae1f50175c..6da144bf50 100644
|
a
|
b
|
class WP_Links_List_Table extends WP_List_Table {
|
| 60 | 60 | 'hide_empty' => 0, |
| 61 | 61 | ); |
| 62 | 62 | |
| 63 | | if ( 'all' !== $cat_id ) { |
| | 63 | if ( 0 !== $cat_id ) { |
| 64 | 64 | $args['category'] = $cat_id; |
| 65 | 65 | } |
| 66 | 66 | if ( ! empty( $s ) ) { |
diff --git a/src/wp-includes/block-supports/layout.php b/src/wp-includes/block-supports/layout.php
index b7c0503d3b..dc9dc0768c 100644
|
a
|
b
|
function wp_get_layout_style( $selector, $layout, $has_block_gap_support = false
|
| 780 | 780 | } |
| 781 | 781 | $gap_value = trim( $combined_gap_value ); |
| 782 | 782 | |
| 783 | | if ( null !== $gap_value && ! $should_skip_gap_serialization ) { |
| | 783 | if ( '' !== $gap_value && ! $should_skip_gap_serialization ) { |
| 784 | 784 | $layout_styles[] = array( |
| 785 | 785 | 'selector' => $selector, |
| 786 | 786 | 'declarations' => array( 'gap' => $gap_value ), |
diff --git a/src/wp-includes/class-wp-rewrite.php b/src/wp-includes/class-wp-rewrite.php
index 8b75fa5c36..33f45c7c11 100644
|
a
|
b
|
class WP_Rewrite {
|
| 799 | 799 | */ |
| 800 | 800 | public function add_rewrite_tag( $tag, $regex, $query ) { |
| 801 | 801 | $position = array_search( $tag, $this->rewritecode, true ); |
| 802 | | if ( false !== $position && null !== $position ) { |
| | 802 | if ( false !== $position ) { |
| 803 | 803 | $this->rewritereplace[ $position ] = $regex; |
| 804 | 804 | $this->queryreplace[ $position ] = $query; |
| 805 | 805 | } else { |
| … |
… |
class WP_Rewrite {
|
| 823 | 823 | */ |
| 824 | 824 | public function remove_rewrite_tag( $tag ) { |
| 825 | 825 | $position = array_search( $tag, $this->rewritecode, true ); |
| 826 | | if ( false !== $position && null !== $position ) { |
| | 826 | if ( false !== $position ) { |
| 827 | 827 | unset( $this->rewritecode[ $position ] ); |
| 828 | 828 | unset( $this->rewritereplace[ $position ] ); |
| 829 | 829 | unset( $this->queryreplace[ $position ] ); |
diff --git a/tests/phpstan/baselines/notIdentical.alwaysTrue.neon b/tests/phpstan/baselines/notIdentical.alwaysTrue.neon
index 6d144b7468..ed00a5e7f8 100644
|
a
|
b
|
|
| 18 | 18 | |
| 19 | 19 | parameters: |
| 20 | 20 | ignoreErrors: |
| 21 | | - |
| 22 | | message: '#^Strict comparison using \!\=\= between ''all'' and int will always evaluate to true\.$#' |
| 23 | | identifier: notIdentical.alwaysTrue |
| 24 | | count: 1 |
| 25 | | path: ../../../src/wp-admin/includes/class-wp-links-list-table.php |
| 26 | | - |
| 27 | | message: '#^Strict comparison using \!\=\= between null and string will always evaluate to true\.$#' |
| 28 | | identifier: notIdentical.alwaysTrue |
| 29 | | count: 1 |
| 30 | | path: ../../../src/wp-includes/block-supports/layout.php |
| 31 | | - |
| 32 | | message: '#^Strict comparison using \!\=\= between null and int\|string will always evaluate to true\.$#' |
| 33 | | identifier: notIdentical.alwaysTrue |
| 34 | | count: 2 |
| 35 | | path: ../../../src/wp-includes/class-wp-rewrite.php |
| 36 | 21 | - |
| 37 | 22 | message: '#^Strict comparison using \!\=\= between ''Etc'' and ''Africa''\|''America''\|''Antarctica''\|''Arctic''\|''Asia''\|''Atlantic''\|''Australia''\|''Europe''\|''Indian''\|''Pacific'' will always evaluate to true\.$#' |
| 38 | 23 | identifier: notIdentical.alwaysTrue |