Permalink
Browse files

Merge pull request #39 from bradyvercher/master

Filter to force compile
  • Loading branch information...
2 parents cf79a01 + 7462f1d commit 8c6869250e13c66895fe31a087f8f11b4659f19b @roborourke committed Mar 6, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 wp-less.php
View
@@ -194,7 +194,7 @@ public function parse_stylesheet( $src, $handle ) {
// allow devs to mess around with the less object configuration
do_action_ref_array( 'lessc', array( &$less ) );
- $less_cache = $less->cachedCompile( $cache[ 'less' ] );
+ $less_cache = $less->cachedCompile( $cache[ 'less' ], apply_filters( 'less_force_compile', false ) );
if ( empty( $cache ) || empty( $cache[ 'less' ][ 'updated' ] ) || $less_cache[ 'updated' ] > $cache[ 'less' ][ 'updated' ] || $this->vars !== $cache[ 'vars' ] ) {
file_put_contents( $cache_path, serialize( array( 'vars' => $this->vars, 'less' => $less_cache ) ) );

0 comments on commit 8c68692

Please sign in to comment.