From c3993f9bef999a4f0b5c56e79273fff93099d9a7 Mon Sep 17 00:00:00 2001 From: Kim Coleman Date: Tue, 27 Sep 2022 11:29:41 -0400 Subject: [PATCH] Updating the recommended and integrated plugins list to work on multisite and be escaped --- inc/admin.php | 104 +++++++++++++++++++++++++++++++++++--------------- 1 file changed, 74 insertions(+), 30 deletions(-) diff --git a/inc/admin.php b/inc/admin.php index 424110c..c3fb000 100644 --- a/inc/admin.php +++ b/inc/admin.php @@ -91,6 +91,12 @@ function memberlite_support() { array( + 'class' => array(), + 'href' => array(), + ), + ); $memberlite_plugins_recommended = apply_filters( 'memberlite_plugins_recommended', array( 'memberlite-elements', 'memberlite-shortcodes', 'paid-memberships-pro', 'sitewide-sales' ) ); if ( ! empty( $memberlite_plugins_recommended ) ) { ?>
@@ -113,11 +119,9 @@ function memberlite_support() { @@ -372,6 +388,34 @@ function memberlite_support() { ' . __( 'Active', 'memberlite' ) . ''; + } elseif ( $status === 'inactive' ) { + $r = '' . __( 'Activate', 'memberlite' ) . ''; + } else { + if ( is_multisite() ) { + // This is a network install. + $r = '' . __( 'Install', 'memberlite' ) . ''; + } else { + $r = '' . __( 'Install', 'memberlite' ) . ''; + } + } + return $r; +} + /* Load any notifications.