_path = $path; else throw new Exception('File (' . $path . ') does not exist'); } /** * Get file contents from path * @return string */ public function __toString() { $less = new lessc; // No caching in none production environments if (defined('APPLICATION_ENV') && APPLICATION_ENV!='production') { return $less->compileFile($this->_path); } $less->checkedCompile($this->_path, ABSPATH . "wp-content/uploads/output-less.css"); return file_get_contents(ABSPATH . "wp-content/uploads/output-less.css"); } }