PHP variable persistence/scope between template files
-
Since upgrading to 2.8, I am experiencing a situation where variables defined in the main scope of the PHP template file/functions.php or plugin are not accessible in my other page template files. I have had to store them in some global area, like the $_ENV array, to access them. Is this a new feature of 2.8, or is it something to do with my PHP configuration? (Although I can’t remember making any changes to my INI).
Has anyone else experienced this?
Many thanks
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘PHP variable persistence/scope between template files’ is closed to new replies.