Merge pull request #2981 from maxrice/report-functions-patch

Allow class callbacks for report functions
This commit is contained in:
Mike Jolley 2013-04-18 06:09:31 -07:00
commit 1c28c481e3
1 changed files with 2 additions and 2 deletions

View File

@ -170,8 +170,8 @@ function woocommerce_reports() {
echo '<p>' . $chart['description'] . '</p>';
$func = $chart['function'];
if ( $func && function_exists( $func ) )
$func();
if ( $func && ( is_callable( $func ) ) )
call_user_func( $func );
}
?>
</div>