-
Task
-
Resolution: Fixed
-
Should have
-
None
-
4
-
Code Refactoring
-
Sprint #87
The superglobal variable $GLOBALS is used to write or access variables from global scope in local scope. This can lead to problems related to code understanding, constraint checking, variable coupling, concurrency issues, namespace pollution, and testing. For better code quality it is recommended to avoid global variables when unnecessary.
Repo: Master-theme
header.php Line 12
$GLOBALS['timberContext'] = Timber::get_context();