PluginProbe
FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses / 2.11.0
FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses v2.11.0
2.11.0 2.10.0 2.10.01 2.9.1 2.9.0 2.8.1 2.8.0 2.7.7 2.7.5 2.7.0 2.6.01 2.6.0 2.5.0 2.4.01 trunk 1.0.90 1.0.91 1.0.92 1.0.93 1.0.94 1.0.95 1.0.96 1.0.97 1.0.98 1.0.99 All 78 releases
← All changes | app/Services/OnboardingService.php +6 -13 2.7.72.11.0 View file →
@@ -418,15 +418,12 @@
418 418 throw new \Exception(wp_kses_post($result->get_error_message()));
419 419 }
420 420
421 421 $activate = true;
422 -
423 - } catch (\Exception $e) {
424 - throw new \Exception(esc_html($e->getMessage()));
422 + } finally {
423 + // Discard feedback.
424 + ob_end_clean();
425 425 }
426 -
427 - // Discard feedback.
428 - ob_end_clean();
429 426 }
430 427
431 428 wp_clean_plugins_cache();
432 429
@@ -431,16 +428,12 @@
431 428 wp_clean_plugins_cache();
432 429
433 430 // Activate this thing.
434 431 if ($activate) {
435 - try {
436 - $result = activate_plugin($installed ? $installed_plugins[$plugin_file] : $plugin_slug . '/' . $plugin_file);
432 + $result = activate_plugin($installed ? $installed_plugins[$plugin_file] : $plugin_slug . '/' . $plugin_file);
437 433
438 - if (is_wp_error($result)) {
439 - throw new \Exception(esc_html($result->get_error_message()));
440 - }
441 - } catch (\Exception $e) {
442 - throw new \Exception(esc_html($e->getMessage()));
434 + if (is_wp_error($result)) {
435 + throw new \Exception(wp_kses_post($result->get_error_message()));
443 436 }
444 437 }
445 438 }
446 439 }