From c923c97c8bfa0b0a63adb70e52b0db6c609c0248 Mon Sep 17 00:00:00 2001 From: b1ink0 Date: Fri, 22 Nov 2024 19:36:40 +0530 Subject: [PATCH] Update the error message --- plugins/performance-lab/includes/admin/plugins.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/performance-lab/includes/admin/plugins.php b/plugins/performance-lab/includes/admin/plugins.php index 49a3180b26..9395e4b954 100644 --- a/plugins/performance-lab/includes/admin/plugins.php +++ b/plugins/performance-lab/includes/admin/plugins.php @@ -28,7 +28,7 @@ function perflab_query_plugin_info( string $plugin_slug ) { // Plugin was requested before and not found. return new WP_Error( 'plugin_not_found', - __( 'Plugin not found in API response.', 'performance-lab' ) + __( 'Plugin not found in cached API response.', 'performance-lab' ) ); } return $plugins[ $plugin_slug ]; // Return cached plugin info if found. @@ -88,6 +88,7 @@ function perflab_query_plugin_info( string $plugin_slug ) { } if ( ! isset( $all_performance_plugins[ $current_plugin_slug ] ) ) { + // Cache the fact that the plugin was not found. $plugins[ $current_plugin_slug ] = false; continue; }