Closed (outdated)
Project:
Drupal core
Version:
9.5.x-dev
Component:
theme system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
10 Oct 2012 at 20:37 UTC
Updated:
12 Jul 2022 at 09:35 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
joelrosen commentedComment #2
tim.plunkett_template_preprocess_default_variables() adds $variables['user'] for every template and theme function.
Here's a possible fix, but this might just be "works as designed" and add some docs saying "don't do that".
Comment #4
barrapontoWhat if we namespace the regions into an array like $page['REGION_NAME'] or maybe even $regions['REGION_NAME']? After all, regiona names will clash with any variable name in maintenance-page.tp.php, right?
Comment #5
lauriiiMaybe we could simply trigger warning in case someone creates region with machinename 'user'
Comment #6
lauriiiOr maybe not. The solution by Tim looks better.
Comment #15
pameeela commentedThis code has changed a lot. I will manually test it when I get a chance, marking postponed until we know whether it's still valid.
Comment #18
quietone commentedMore information about this issue was asked for in 1 year ago an no additional information has been supplied, therefor closing.
If you are experiencing this problem on a supported version of Drupal reopen the issue, by setting the status to 'Active', and provide complete steps to reproduce the issue (starting from "Install Drupal core").
Thanks!