From 7543bba0b305491d88b94589b0da5cbc89ac8671 Mon Sep 17 00:00:00 2001 From: Eric van der Vlist Date: Sun, 5 Jun 2011 00:11:24 +0200 Subject: [PATCH] Include wp-admin/includes/plugin.php when needed. --- wordpress/plugins/owark/owark.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wordpress/plugins/owark/owark.php b/wordpress/plugins/owark/owark.php index e08e463..e906c85 100644 --- a/wordpress/plugins/owark/owark.php +++ b/wordpress/plugins/owark/owark.php @@ -108,6 +108,8 @@ if (!class_exists("Owark")) { } // Check that the broken link checker is installed + if (!function_exists('get_plugins')) + require_once (ABSPATH."wp-admin/includes/plugin.php"); $blc = 'not-found'; foreach(get_plugins() as $plugin_file => $plugin_data) {