Changeset 2844934
- Timestamp:
- 01/07/2023 03:54:19 PM (3 years ago)
- Location:
- scss-4-wp/trunk
- Files:
-
- 2 edited
-
scss-4-wp.php (modified) (2 diffs)
-
src/Core.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
scss-4-wp/trunk/scss-4-wp.php
r2834575 r2844934 4 4 * Plugin URI: https://github.com/Field-Of-Code/scss-4-wp 5 5 * Description: Compiles scss files live on WordPress. 6 * Version: 1.0. 06 * Version: 1.0.1 7 7 * Author: Field Of Code 8 8 * Author URI: https://fieldofcode.com … … 20 20 const ID = 'scss4wp'; 21 21 const NAME = 'SCSS-4-WP'; 22 const VERSION = '1.0. 0';22 const VERSION = '1.0.1'; 23 23 24 24 /** -
scss-4-wp/trunk/src/Core.php
r2834575 r2844934 102 102 $variables = apply_filters('scss4wp_variables', array()); 103 103 foreach ($variables as $key => $value) { 104 if (strlen(trim($variable_value)) == 0) { 105 unset($variables[$variable_key]); 106 } 107 } 108 $this->scssc->set_variables($variables); 104 if (strlen(trim($value)) == 0) { 105 unset($variables[$key]); 106 } 107 } 108 if(!empty($variables)) { 109 $this->scssc->addVariables($variables); 110 } 109 111 110 112 $this->scssc->setOutputStyle( $this->settings['compiling'] );
Note: See TracChangeset
for help on using the changeset viewer.