Skip to content

Commit

Permalink
Update the error message
Browse files Browse the repository at this point in the history
  • Loading branch information
b1ink0 committed Nov 22, 2024
1 parent 54532b5 commit c923c97
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/performance-lab/includes/admin/plugins.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit c923c97

Please sign in to comment.