Permalink
Browse files

Ajout d'unités dans la simplification des valeurs nulles

  • Loading branch information...
1 parent 1438a1e commit cad04cabec304e896f28b4824d6af35a7f8da588 @NumEricR committed Dec 27, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 inc/functions.php
View
@@ -118,7 +118,7 @@ public function clean_css($css_to_clean) {
// Ecriture trop lourde
$css_to_clean = str_replace(';;', ';', $css_to_clean);
- $css_to_clean = str_replace(':0px;', ':0;', $css_to_clean);
+ $css_to_clean = preg_replace('#:0(px|em|ex|%|pt|pc|in|cm|mm|rem|vw|vh|vm);#', ':0;', $css_to_clean);
// == Mise en page améliorée ==
// Début du listing des propriétés

0 comments on commit cad04ca

Please sign in to comment.