WP-SCSS - Version 2.3.2

Version Description

  • Add wp_kses() to echos with potential user input shadoath
Download this release

Release Info

Developer Sky Bolt
Plugin Icon wp plugin WP-SCSS
Version 2.3.2
Comparing to
See all releases

Code changes from version 2.3.1 to 2.3.2

Files changed (4) hide show
  1. options.php +3 -4
  2. readme.md +2 -1
  3. readme.txt +5 -2
  4. wp-scss.php +4 -3
options.php CHANGED
@@ -40,7 +40,7 @@ class Wp_Scss_Settings {
40
  <div class="wrap">
41
  <h2>WP-SCSS Settings</h2>
42
  <p>
43
- <span class="version">Version <em><?php echo get_option('wpscss_version'); ?></em>
44
  <br/>
45
  <span class="author">By: <a href="http://connectthink.com" target="_blank">Connect Think</a></span>
46
  <br/>
@@ -274,7 +274,7 @@ class Wp_Scss_Settings {
274
  }
275
  $html .= '</select>';
276
 
277
- echo $html;
278
  }
279
 
280
  /**
@@ -291,7 +291,6 @@ class Wp_Scss_Settings {
291
  $html .= '<label for="' . esc_attr( $args['name'] ) . '"></label>';
292
  }
293
 
294
-
295
- echo $html;
296
  }
297
  }
40
  <div class="wrap">
41
  <h2>WP-SCSS Settings</h2>
42
  <p>
43
+ <span class="version">Version <em><?php echo wp_kses(get_option('wpscss_version'), array()); ?></em>
44
  <br/>
45
  <span class="author">By: <a href="http://connectthink.com" target="_blank">Connect Think</a></span>
46
  <br/>
274
  }
275
  $html .= '</select>';
276
 
277
+ echo wp_kses($html, array( 'select' => array(), 'option' => array()));
278
  }
279
 
280
  /**
291
  $html .= '<label for="' . esc_attr( $args['name'] ) . '"></label>';
292
  }
293
 
294
+ echo wp_kses($html, array('input' => array(), 'label' => array() ));
 
295
  }
296
  }
readme.md CHANGED
@@ -107,7 +107,8 @@ This plugin will only work with .scss format.
107
 
108
  ## Changelog
109
 
110
-
 
111
  - 2.3.1
112
  - Wrap check for WP_SCSS_ALWAYS_RECOMPILE with () [niaccurshi](https://github.com/ConnectThink/WP-SCSS/pull/199)
113
  - 2.3.0
107
 
108
  ## Changelog
109
 
110
+ - 2.3.2
111
+ - Add wp_kses() to echos with potential user input [shadoath](https://github.com/ConnectThink/WP-SCSS/pull/208)
112
  - 2.3.1
113
  - Wrap check for WP_SCSS_ALWAYS_RECOMPILE with () [niaccurshi](https://github.com/ConnectThink/WP-SCSS/pull/199)
114
  - 2.3.0
readme.txt CHANGED
@@ -3,9 +3,9 @@ Contributors: connectthink, sky-bolt
3
  Tags: sass, scss, css, ScssPhp
4
  Plugin URI: https://github.com/ConnectThink/WP-SCSS
5
  Requires at least: 3.0.1
6
- Tested up to: 5.7.1
7
  Requires PHP: 5.6
8
- Stable tag: 2.3.1
9
  License: GPLv3 or later
10
  License URI: http://www.gnu.org/copyleft/gpl.html
11
 
@@ -76,6 +76,9 @@ If you are having issues with the plugin, create an issue on [github](https://gi
76
 
77
  == Changelog ==
78
 
 
 
 
79
  = 2.3.1 =
80
  - Wrap check for WP_SCSS_ALWAYS_RECOMPILE with () [niaccurshi](https://github.com/ConnectThink/WP-SCSS/pull/199)
81
 
3
  Tags: sass, scss, css, ScssPhp
4
  Plugin URI: https://github.com/ConnectThink/WP-SCSS
5
  Requires at least: 3.0.1
6
+ Tested up to: 5.8
7
  Requires PHP: 5.6
8
+ Stable tag: 2.3.2
9
  License: GPLv3 or later
10
  License URI: http://www.gnu.org/copyleft/gpl.html
11
 
76
 
77
  == Changelog ==
78
 
79
+ = 2.3.2 =
80
+ - Add wp_kses() to echos with potential user input [shadoath](https://github.com/ConnectThink/WP-SCSS/pull/208)
81
+
82
  = 2.3.1 =
83
  - Wrap check for WP_SCSS_ALWAYS_RECOMPILE with () [niaccurshi](https://github.com/ConnectThink/WP-SCSS/pull/199)
84
 
wp-scss.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: WP-SCSS
4
  * Plugin URI: https://github.com/ConnectThink/WP-SCSS
5
  * Description: Compiles scss files live on WordPress.
6
- * Version: 2.3.1
7
  * Author: Connect Think
8
  * Author URI: http://connectthink.com
9
  * License: GPLv3
@@ -44,7 +44,7 @@ if (!defined('WPSCSS_VERSION_KEY'))
44
  define('WPSCSS_VERSION_KEY', 'wpscss_version');
45
 
46
  if (!defined('WPSCSS_VERSION_NUM'))
47
- define('WPSCSS_VERSION_NUM', '2.3.1');
48
 
49
  // Add version to options table
50
  if ( get_option( WPSCSS_VERSION_KEY ) !== false ) {
@@ -253,12 +253,13 @@ function wpscss_error_styles() {
253
  }
254
 
255
  function wpscss_settings_show_errors($errors) {
 
256
  echo '<div class="scss_errors"><pre>';
257
  echo '<h6 style="margin: 15px 0;">Sass Compiling Error</h6>';
258
 
259
  foreach( $errors as $error) {
260
  echo '<p class="sass_error">';
261
- echo '<strong>'. $error['file'] .'</strong> <br/><em>"'. $error['message'] .'"</em>';
262
  echo '<p class="sass_error">';
263
  }
264
 
3
  * Plugin Name: WP-SCSS
4
  * Plugin URI: https://github.com/ConnectThink/WP-SCSS
5
  * Description: Compiles scss files live on WordPress.
6
+ * Version: 2.3.2
7
  * Author: Connect Think
8
  * Author URI: http://connectthink.com
9
  * License: GPLv3
44
  define('WPSCSS_VERSION_KEY', 'wpscss_version');
45
 
46
  if (!defined('WPSCSS_VERSION_NUM'))
47
+ define('WPSCSS_VERSION_NUM', '2.3.2');
48
 
49
  // Add version to options table
50
  if ( get_option( WPSCSS_VERSION_KEY ) !== false ) {
253
  }
254
 
255
  function wpscss_settings_show_errors($errors) {
256
+ $allowed_html = array( 'string' => array(), 'br' => array(), 'em' => array() );
257
  echo '<div class="scss_errors"><pre>';
258
  echo '<h6 style="margin: 15px 0;">Sass Compiling Error</h6>';
259
 
260
  foreach( $errors as $error) {
261
  echo '<p class="sass_error">';
262
+ echo wp_kses('<strong>'. $error['file'] .'</strong> <br/><em>"'. $error['message'] .'"</em>', $allowed_html);
263
  echo '<p class="sass_error">';
264
  }
265