diff --git a/inc/class-profiler.php b/inc/class-profiler.php index 6e66489..74cc74c 100644 --- a/inc/class-profiler.php +++ b/inc/class-profiler.php @@ -446,7 +446,7 @@ class Profiler { // Template is normally loaded in global scope, so we need to replicate foreach ( $GLOBALS as $key => $value ) { - global $$key; + global ${$key}; } // Load the theme template.