Include wp-admin/includes/plugin.php when needed.

This commit is contained in:
Eric van der Vlist 2011-06-05 00:11:24 +02:00
parent 1033614814
commit 7543bba0b3
1 changed files with 2 additions and 0 deletions

View File

@ -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) {