Posted By

the_coder on 03/10/10


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

naeemnur


Thesis 1.7b1 bug


 / Published in: PHP
 

  1. // How it is in 1.7b1 - Breaks the custom body filter
  2.  
  3. if (is_array($classes))
  4. $classes = implode(' ', $classes);
  5.  
  6. $classes = apply_filters('thesis_body_classes', $classes); // This line moved
  7.  
  8. if ($classes)
  9. return ' class="' . $classes . '"';
  10.  
  11.  
  12.  
  13. // As it was in 1.6
  14.  
  15. $classes = apply_filters('thesis_body_classes', $classes);
  16.  
  17. if (is_array($classes))
  18. $classes = implode(' ', $classes);
  19.  
  20. if ($classes)
  21. return ' class="' . $classes . '"';

Report this snippet  

You need to login to post a comment.