From 580f91cc9d40a55cc5b19c737311a248e31964e4 Mon Sep 17 00:00:00 2001 From: Josh Arens Date: Mon, 13 Jan 2020 16:51:28 -0500 Subject: [PATCH] remove nextgen check --- lib/admin_page.php | 4 +--- lib/compat.php | 5 ----- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/lib/admin_page.php b/lib/admin_page.php index 930e1dd..0520733 100644 --- a/lib/admin_page.php +++ b/lib/admin_page.php @@ -58,7 +58,6 @@ function p7i_render_admin_page() { $domIsCompatible = p7i_dom_compatible(); $mysqlCompatible = p7i_mysql_permission_compatible(); $hostingCompatible = p7i_hosting_compatible(); - $isRunningNextgenPlugin = p7i_is_running_nextgen_plugin(); $isCompatible = $phpIsCompatible && $wpIsCompatible @@ -66,8 +65,7 @@ function p7i_render_admin_page() { && $jsonIsCompatible && $domIsCompatible && $mysqlCompatible - && $hostingCompatible - && ! $isRunningNextgenPlugin; + && $hostingCompatible; include(P7I_DIR . '/views/google-tag-manager.php'); diff --git a/lib/compat.php b/lib/compat.php index 32bb14f..0816371 100644 --- a/lib/compat.php +++ b/lib/compat.php @@ -154,8 +154,3 @@ function p7i_hosting_compatible() { return true; } - -function p7i_is_running_nextgen_plugin() { - $activePlugins = get_option('active_plugins'); - return in_array('nextgen-gallery/nggallery.php', $activePlugins); -}