diff options
Diffstat (limited to 'plugins/jetpack/modules/custom-css/csstidy/class.csstidy_optimise.php')
-rw-r--r-- | plugins/jetpack/modules/custom-css/csstidy/class.csstidy_optimise.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins/jetpack/modules/custom-css/csstidy/class.csstidy_optimise.php b/plugins/jetpack/modules/custom-css/csstidy/class.csstidy_optimise.php index 364573a3..2ed9f803 100644 --- a/plugins/jetpack/modules/custom-css/csstidy/class.csstidy_optimise.php +++ b/plugins/jetpack/modules/custom-css/csstidy/class.csstidy_optimise.php @@ -19,7 +19,7 @@ * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * @@ -262,8 +262,7 @@ class csstidy_optimise { */ function compress_important(&$string) { if (csstidy::is_important($string)) { - $string = csstidy::gvw_important($string) . '!important'; - } + $string = csstidy::gvw_important($string) . ' !important'; } return $string; } @@ -627,7 +626,7 @@ class csstidy_optimise { // don't try to explose background gradient ! if (stripos($str_value, "gradient(")!==FALSE) return array('background'=>$str_value); - + $background_prop_default = & $GLOBALS['csstidy']['background_prop_default']; $repeat = array('repeat', 'repeat-x', 'repeat-y', 'no-repeat', 'space'); $attachment = array('scroll', 'fixed', 'local'); @@ -713,7 +712,7 @@ class csstidy_optimise { // if background properties is here and not empty, don't try anything if (isset($input_css['background']) AND $input_css['background']) return $input_css; - + for ($i = 0; $i < $number_of_values; $i++) { foreach ($background_prop_default as $bg_property => $default_value) { // Skip if property does not exist |