Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added function_exists( 'compiler' ) check for function compiler() #142

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions class/class-wp-scss.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public function compile() {

//Compiler - Takes scss $in and writes compiled css to $out file
// catches errors and puts them the object's compiled_errors property
if (function_exists( 'compiler' ) {
function compiler($in, $out, $instance) {
global $scssc, $cache;

Expand Down Expand Up @@ -90,6 +91,7 @@ function compiler($in, $out, $instance) {
array_push($instance->compile_errors, $errors);
}
}
}

$input_files = array();
// Loop through directory and get .scss file that do not start with '_'
Expand Down