From c0570b13980922a4b94841c693af5332ec46cf43 Mon Sep 17 00:00:00 2001
From: Sergey Biryukov ' . $dropins[ $plugin_file ][0] . '
' . $plugin_data['Name'];
}
+
if ( true === ( $dropins[ $plugin_file ][1] ) ) { // Doesn't require a constant.
$is_active = true;
$description = 'wp-config.php
'
) . '
' . $plugin_data['Description'] . '
'; } @@ -947,6 +950,7 @@ class WP_Plugins_List_Table extends WP_List_Table { $compatible_php = is_php_version_compatible( $requires_php ); $class = $is_active ? 'active' : 'inactive'; $checkbox_id = 'checkbox_' . md5( $plugin_data['Name'] ); + if ( $restrict_network_active || $restrict_network_only || in_array( $status, array( 'mustuse', 'dropins' ), true ) || ! $compatible_php ) { $checkbox = ''; } else { @@ -959,6 +963,7 @@ class WP_Plugins_List_Table extends WP_List_Table { esc_attr( $plugin_file ) ); } + if ( 'dropins' !== $context ) { $description = '' . ( $plugin_data['Description'] ? $plugin_data['Description'] : ' ' ) . '
'; $plugin_name = $plugin_data['Name']; @@ -1124,7 +1129,7 @@ class WP_Plugins_List_Table extends WP_List_Table { $url = add_query_arg( $query_args, 'plugins.php' ); - if ( 'unavailable' == $action ) { + if ( 'unavailable' === $action ) { $html[] = '' . $text . ''; } else { $html[] = sprintf(