Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add a filter to force LESS compile.

  • Loading branch information...
commit 7462f1dabe440b3acc00d7336c86cac5d9f6ddfb 1 parent cf79a01
@bradyvercher bradyvercher authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  wp-less.php
View
2  wp-less.php
@@ -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 ) ) );
Please sign in to comment.
Something went wrong with that request. Please try again.