From 27214a5997350e5f505549dda0e1adefb61e46ff Mon Sep 17 00:00:00 2001 From: barryhughes Date: Fri, 11 Sep 2020 11:34:39 -0700 Subject: [PATCH] Migrate from create_func to native anon func | #67 --- fp-includes/core/core.system.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fp-includes/core/core.system.php b/fp-includes/core/core.system.php index 9bbfc65..287d3c2 100755 --- a/fp-includes/core/core.system.php +++ b/fp-includes/core/core.system.php @@ -216,8 +216,10 @@ function system_geterr($module = '') { /* delayed print */ function system_dpr($action, $content) { $p = print_r($content, 1); - $f = create_function('', "echo '
$p
';"); - add_action($action, $f); + + add_action($action, function() use ($p) { + echo "
$p
"; + }); } ?>