Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
(plugin -> plugins)
  • Loading branch information
jazzsequence committed Aug 27, 2024
1 parent a09f4e0 commit 84f9a9a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions inc/site-health.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ function output_compatibility_status_table( $plugins, $output = true, $incompati
<?php

// Filter out incompatible plugins. This allows us to re-use the status table for different types of compatibility issues.
if ( $incompatible && ( ! isset( $plugin['plugin_compatibility'] ) || $plugin['plugin_compatibility'] !== 'incompatible' ) ) {
$plugins = array_filter( $plugins, function( $plugins ) {
if ( $incompatible && ( ! isset( $plugins['plugin_compatibility'] ) || $plugins['plugin_compatibility'] !== 'incompatible' ) ) {
$plugins = array_filter( $plugins, function ( $plugins ) {
return $plugins['plugin_compatibility'] === 'incompatible';
} );
}
Expand Down Expand Up @@ -768,7 +768,7 @@ function get_compatibility_review_fixes() {
)
),
'plugin_compatibility' => 'incompatible',
]
],
];

return add_plugin_names_to_known_issues(
Expand Down Expand Up @@ -845,7 +845,7 @@ function test_compatibility() {
$description = sprintf(
'<p>%s</p>%s',
__( 'There are known compatibility issues with your active plugins that require manual fixes.', 'pantheon' ),
output_compatibility_status_table( $manual_fixes, false )
output_compatibility_status_table( $manual_fixes, false )
);

if ( ! empty( $review_fixes ) ) {
Expand Down

0 comments on commit 84f9a9a

Please sign in to comment.