PluginProbe
YayMail – WooCommerce Email Customizer / 4.4.6
YayMail – WooCommerce Email Customizer v4.4.6
4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 trunk 1.9.6 2.1.4 2.1.5 3.2.2 3.2.6 3.2.7.1 3.2.8.1 3.2.9 3.3 3.3.1 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9 3.4 3.4.1 All 57 releases
← All changes | vendor-prefixed/views/recommended-plugins-page.php +6 -6 4.4.1 → 4.4.6 View file →
@@ -17,18 +17,18 @@
17 17 }
18 18 $page_instance = RecommendedPluginsPage::get_instance();
19 19 foreach ($recommended_plugins as $key => $plugin_detail) {
20 20 $plugin_slug = $plugin_detail['slug'];
21 - $all_plugins = \get_plugins();
22 - $install_status = \install_plugin_install_status((object) ['slug' => $plugin_slug, 'version' => $plugin_detail['version']]);
21 + $all_plugins = get_plugins();
22 + $install_status = install_plugin_install_status((object) ['slug' => $plugin_slug, 'version' => $plugin_detail['version']]);
23 23 $status = $install_status['status'] ?? 'not_installed';
24 24 $exist_pro_ver = $page_instance->check_pro_version_exists($plugin_detail);
25 25 $is_installed = \in_array($status, ['latest_installed', 'newer_installed'], \true) || $exist_pro_ver;
26 - $is_active = 'active' === $status || $exist_pro_ver && \is_plugin_active($exist_pro_ver) || $is_installed && \is_plugin_active($install_status['file']);
26 + $is_active = 'active' === $status || $exist_pro_ver && is_plugin_active($exist_pro_ver) || $is_installed && is_plugin_active($install_status['file']);
27 27 $is_update = 'update_available' === $status;
28 28 // Hide CF7 add-ons when Contact Form 7 itself is not active
29 29 $cf7_dependent_slugs = ['cf7-multi-step', 'cf7-database'];
30 - if (\in_array($plugin_slug, $cf7_dependent_slugs, \true) && !\is_plugin_active('contact-form-7/wp-contact-form-7.php')) {
30 + if (\in_array($plugin_slug, $cf7_dependent_slugs, \true) && !is_plugin_active('contact-form-7/wp-contact-form-7.php')) {
31 31 continue;
32 32 }
33 33 // Hide active plugins that don't need updates
34 34 if ($is_active && !$is_update) {
@@ -62,9 +62,9 @@
62 62 </div>
63 63 <div class="plugin-card-bottom">
64 64 <div class="column-rating">
65 65 <?php
66 - if ($is_active || $exist_pro_ver && \is_plugin_active($exist_pro_ver)) {
66 + if ($is_active || $exist_pro_ver && is_plugin_active($exist_pro_ver)) {
67 67 ?>
68 68 <?php
69 69 \esc_html_e('Status:', 'yaycommerce');
70 70 ?>
@@ -110,9 +110,9 @@
110 110 </div>
111 111 <div class="column-updated">
112 112 <ul class="plugin-action-buttons">
113 113 <?php
114 - if ($is_active || $exist_pro_ver && \is_plugin_active($exist_pro_ver)) {
114 + if ($is_active || $exist_pro_ver && is_plugin_active($exist_pro_ver)) {
115 115 ?>
116 116 <li><button class="button button-disabled" disabled><?php
117 117 \esc_html_e('Activated', 'yaycommerce');
118 118 ?></button></li>