For some reason the way Drupal handles the $variables['classes_array']; in html.tpl.php has been changed without explanation why #2501275: Convert deprecated attributes in html.tpl.php. As far as I can see the change of the classes_array handling doesn't change anything except for breaking the way the hooks work in subthemes.

This patch reverts the change for $variables['classes_array'];

Comments

MartijnBraam created an issue. See original summary.

MartijnBraam’s picture

Status: Active » Needs review
markhalliwell’s picture

Status: Needs review » Needs work
+++ b/templates/system/html.vars.php
@@ -35,22 +35,21 @@ function bootstrap_preprocess_html(&$variables) {
-    'class' => $variables['classes_array'],

Actually, if you just changed this line to so that it adds a & in front, it should work just fine:
'class' => &$variables['classes_array'],

---

That being said, this is really just how theme "updates/upgrades" go. You have to double check/change your sub-theme's files to match whatever it is you've overridden.

  • markcarver committed 7199c96 on 7.x-3.x
    Issue #2608278 by MartijnBraam: Cannot add classes to body
    
markhalliwell’s picture

Status: Needs work » Fixed
clemens.tolboom’s picture

Issue summary: View changes

Status: Fixed » Closed (fixed)

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