Skip to content

Commit 43ff073

Browse files
Simplify conditionals
Co-authored-by: Weston Ruter <[email protected]>
1 parent d50c162 commit 43ff073

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/wp-admin/includes/class-wp-plugins-list-table.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -800,11 +800,7 @@ public function single_row( $item ) {
800800
$tested_compatible = true;
801801

802802
if ( ! is_wp_error( $plugin_information ) && isset( $plugin_information->tested ) ) {
803-
$tested_wp = $plugin_information->tested;
804-
}
805-
806-
if ( null !== $tested_wp ) {
807-
$tested_compatible = is_tested_wp_version_compatible( $tested_wp );
803+
$tested_compatible = is_tested_wp_version_compatible( $plugin_information->tested );
808804
}
809805

810806
$has_dependents = WP_Plugin_Dependencies::has_dependents( $plugin_file );

0 commit comments

Comments
 (0)