From ac2acf41afb52abe8422e89a12167488a3e8206f Mon Sep 17 00:00:00 2001 From: Rami Abraham Date: Thu, 17 Oct 2013 13:17:37 -0400 Subject: [PATCH] Add exists check for cp_recent_activity in includes/cp-core.php; fixes #97 --- includes/cp-core.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/cp-core.php b/includes/cp-core.php index 4d9e034..03a4e56 100644 --- a/includes/cp-core.php +++ b/includes/cp-core.php @@ -121,7 +121,9 @@ function cp_wp_add_dashboard_widgets() { } function cp_wp_dashboard_widget_function() { + if ( function_exists('cp_recent_activity') ) { cp_recent_activity(); + } } // Load BuddyPress integration, if BP is enabled