WP-LESS - Version 1.3.1

Version Description

Download this release

Release Info

Developer oncletom
Plugin Icon wp plugin WP-LESS
Version 1.3.1
Comparing to
See all releases

Code changes from version 1.3 to 1.3.1

bootstrap.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WP LESS
4
  Description: LESS extends CSS with variables, mixins, operations and nested rules. This plugin magically parse all your <code>*.less</code> files queued with <code>wp_enqueue_style</code> in WordPress.
5
  Author: Oncle Tom
6
- Version: 1.3
7
  Author URI: http://case.oncle-tom.net/
8
  Plugin URI: http://wordpress.org/extend/plugins/wp-less/
9
 
@@ -14,4 +14,4 @@ Plugin URI: http://wordpress.org/extend/plugins/wp-less/
14
  require dirname(__FILE__).'/lib/Plugin.class.php';
15
  $WPLessPlugin = WPPluginToolkitPlugin::create('WPLess', __FILE__);
16
 
17
- $WPLessPlugin->dispatch();
3
  Plugin Name: WP LESS
4
  Description: LESS extends CSS with variables, mixins, operations and nested rules. This plugin magically parse all your <code>*.less</code> files queued with <code>wp_enqueue_style</code> in WordPress.
5
  Author: Oncle Tom
6
+ Version: 1.3.1
7
  Author URI: http://case.oncle-tom.net/
8
  Plugin URI: http://wordpress.org/extend/plugins/wp-less/
9
 
14
  require dirname(__FILE__).'/lib/Plugin.class.php';
15
  $WPLessPlugin = WPPluginToolkitPlugin::create('WPLess', __FILE__);
16
 
17
+ $WPLessPlugin->dispatch();
lib/Compiler.class.php CHANGED
@@ -7,7 +7,7 @@
7
  * @package wp-less
8
  * @subpackage lib
9
  * @since 1.2
10
- * @version 1.1
11
  */
12
  class WPLessCompiler extends lessc
13
  {
@@ -19,7 +19,7 @@ class WPLessCompiler extends lessc
19
  */
20
  public function __construct($file = null)
21
  {
22
- do_action('wp-less_compiler_construct', $this, $file);
23
  parent::__construct(apply_filters('wp-less_compiler_construct', $file));
24
  }
25
 
@@ -33,7 +33,7 @@ class WPLessCompiler extends lessc
33
  */
34
  public function parse($text = null)
35
  {
36
- do_action('wp-less_compiler_parse', $this);
37
  return apply_filters('wp-less_compiler_parse', parent::parse($text));
38
  }
39
 
7
  * @package wp-less
8
  * @subpackage lib
9
  * @since 1.2
10
+ * @version 1.2
11
  */
12
  class WPLessCompiler extends lessc
13
  {
19
  */
20
  public function __construct($file = null)
21
  {
22
+ do_action('wp-less_compiler_construct_pre', $this, $file);
23
  parent::__construct(apply_filters('wp-less_compiler_construct', $file));
24
  }
25
 
33
  */
34
  public function parse($text = null)
35
  {
36
+ do_action('wp-less_compiler_parse_pre', $this);
37
  return apply_filters('wp-less_compiler_parse', parent::parse($text));
38
  }
39
 
lib/Configuration.class.php CHANGED
@@ -10,7 +10,7 @@ class WPLessConfiguration extends WPPluginToolkitConfiguration
10
  /**
11
  * Refers to the version of the plugin
12
  */
13
- const VERSION = '1.3';
14
 
15
 
16
  protected function configure()
10
  /**
11
  * Refers to the version of the plugin
12
  */
13
+ const VERSION = '1.3.1';
14
 
15
 
16
  protected function configure()
lib/vendor/lessphp/lessc.inc.php CHANGED
@@ -15,7 +15,7 @@
15
  //
16
 
17
  class lessc {
18
- private $buffer;
19
  private $count;
20
  private $line;
21
  private $expandStack;
15
  //
16
 
17
  class lessc {
18
+ protected $buffer;
19
  private $count;
20
  private $line;
21
  private $expandStack;
patch/protected-buffer.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Index: wp-less/lib/vendor/lessphp/lessc.inc.php
2
+ ===================================================================
3
+ --- wp-less/lib/vendor/lessphp/lessc.inc.php (revision 317994)
4
+ +++ wp-less/lib/vendor/lessphp/lessc.inc.php (working copy)
5
+ @@ -15,7 +15,7 @@
6
+ //
7
+
8
+ class lessc {
9
+ - private $buffer;
10
+ + protected $buffer;
11
+ private $count;
12
+ private $line;
13
+ private $expandStack;
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: oncletom
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=752034
4
  Tags: dev, theme, themes, toolkit, plugin-toolkit, less, lesscss, lessc, lessphp, productivity, style, stylesheet, api
5
  Requires at least: 2.8
6
- Tested up to: 2.8.x
7
- Stable tag: 1.3
8
 
9
  Implementation of LESS (Leaner CSS) in order to make themes development easier.
10
 
@@ -47,6 +47,13 @@ The sole requirement is to use WordPress API and LESS convention: the `.less` ex
47
  1. Activate it through your WordPress plugins administration page
48
 
49
  == Changelog ==
 
 
 
 
 
 
 
50
  = Version 1.3 =
51
 
52
  * moved stylesheet processing from `wp_print_styles` to `wp` action
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=752034
4
  Tags: dev, theme, themes, toolkit, plugin-toolkit, less, lesscss, lessc, lessphp, productivity, style, stylesheet, api
5
  Requires at least: 2.8
6
+ Tested up to: 3.0.2
7
+ Stable tag: 1.3.1
8
 
9
  Implementation of LESS (Leaner CSS) in order to make themes development easier.
10
 
47
  1. Activate it through your WordPress plugins administration page
48
 
49
  == Changelog ==
50
+
51
+ = Version 1.3.1 =
52
+
53
+ * renamed `wp-less_compiler_parse` action to `wp-less_compiler_parse_pre` to avoid name conflicts
54
+ * renamed `wp-less_compiler_construct` action to `wp-less_compiler_construct_pre` to avoid name conflicts
55
+ * lessphp: patched the lib to let manipulating the buffer, and replace strings (do it at your own risks)
56
+
57
  = Version 1.3 =
58
 
59
  * moved stylesheet processing from `wp_print_styles` to `wp` action