Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In file at_core/inc/plugins.inc return value of drupal_static function isn't gotten by reference.
function at_get_plugins($theme_name) {
$plugins = drupal_static(__FUNCTION__, array());
if (empty($plugins)) {
if ($plugins_cache = cache_get('at_get_plugins_plugins')) {
$plugins = $plugins_cache->data;
}
else {
...
}
It causes troubles if drupal cache is off. When adaptivetheme appiarence form is submited, the huge of PHP warnings takes place because $plugins_list isn't defined.
It is actual for dev version, but string numbers in the patch don't pass for it.
Comment | File | Size | Author |
---|---|---|---|
adaptivetheme.plugins.drupal-static-reference.patch | 472 bytes | dewalt |
Comments
Comment #1
Jeff Burnz CreditAttribution: Jeff Burnz commentedFar out, good catch, thanks for the patch!
Committed: https://drupal.org/commitlog/commit/10872/a75a1631e6f100e234607d038d2c45...