Download & Extend

theme_get_setting() tries to use a global variable which doesn't exist anymore

Project:Drupal core
Version:7.x-dev
Component:theme system
Category:bug report
Priority:minor
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

People keep trying to slip stuff referring to the global $custom_theme variable into Drupal even though that global variable no longer exists... probably it's related to the fact that we haven't gotten around to documenting the change from #553944: Define hook_menu_get_item_alter() as a reliable hook that runs before the page is doomed yet :)

In this case, I'm not even sure what the code was trying to use it for. Whenever drupal_theme_initialize() is called, the global $theme_key gets set to the actual theme that is going to be used for the current page, so as far as I can tell, that is all we would ever need to check here.

AttachmentSizeStatusTest resultOperations
get-rid-of-custom-theme-global.patch717 bytesIdleFailed: 14684 passes, 9 fails, 336 exceptionsView details

Comments

#1

Status:needs review» needs work

The last submitted patch failed testing.

#2

Status:needs work» needs review

I'm pretty sure those test failures aren't for real. Resubmitting.

AttachmentSizeStatusTest resultOperations
get-rid-of-custom-theme-global.patch717 bytesIdlePassed: 14699 passes, 0 fails, 0 exceptionsView details

#3

Status:needs review» fixed

Committed to CVS HEAD. Thanks David.

#4

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.