diff --git a/includes/Services/SiteGenService.php b/includes/Services/SiteGenService.php index a28234b..cb018cd 100644 --- a/includes/Services/SiteGenService.php +++ b/includes/Services/SiteGenService.php @@ -681,7 +681,7 @@ public static function get_plugin_recommendations() { 'plugin_recommendation' ); - if ( isset( $plugin_recommendations['error'] ) || is_wp_error( $plugin_recommendations ) ) { + if ( is_wp_error( $plugin_recommendations ) || isset( $plugin_recommendations['error'] ) ) { return new \WP_Error( 'nfd_onboarding_error', __( 'Cannot retrieve plugin recommendations.', 'wp-module-onboarding-data' ),