Commit 9f9802d9 authored by Kyle B. Johnson's avatar Kyle B. Johnson

add function check.

parent 3bad9867
......@@ -10,6 +10,10 @@ final class NF_AddonChecker
public function check_plugins()
{
if ( ! function_exists( 'get_plugins' ) ) {
require_once ABSPATH . 'wp-admin/includes/plugin.php';
}
$plugins = get_plugins();
foreach( $plugins as $plugin => $data ){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment