Code cleanup: Write to $GLOBALS

XMLWordPrintable

    • Type: Task
    • Resolution: Fixed
    • Priority: 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();
      

            Assignee:
            Dylan Pivo (Inactive)
            Reporter:
            Konstantinos Kokkorogiannis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: