diff --git a/options.php b/options.php index 8a56522..c6061b6 100644 --- a/options.php +++ b/options.php @@ -274,7 +274,7 @@ public function input_select_callback( $args ) { } $html .= ''; - echo wp_kses($html, array( 'select' => array(), 'option' => array())); + echo wp_kses($html, array( 'select' => array('id' => array(), 'name' => array()), 'option' => array('value' => array()))); } /** @@ -291,6 +291,6 @@ public function input_checkbox_callback( $args ) { $html .= ''; } - echo wp_kses($html, array('input' => array(), 'label' => array() )); + echo wp_kses($html, array('input' => array('type' => array(), 'name' => array(), 'value' => array(), 'disabled' => array()), 'label' => array('for' => array()) )); } } diff --git a/readme.md b/readme.md index c9b3143..0837adc 100644 --- a/readme.md +++ b/readme.md @@ -107,6 +107,8 @@ This plugin will only work with .scss format. ## Changelog +- 2.3.3 + - Fix params passed to wp_kses() [shadoath](https://github.com/ConnectThink/WP-SCSS/pull/211) - 2.3.2 - Add wp_kses() to echos with potential user input [shadoath](https://github.com/ConnectThink/WP-SCSS/pull/208) - 2.3.1 diff --git a/readme.txt b/readme.txt index 53bf339..cba8079 100644 --- a/readme.txt +++ b/readme.txt @@ -5,7 +5,7 @@ Plugin URI: https://github.com/ConnectThink/WP-SCSS Requires at least: 3.0.1 Tested up to: 5.8 Requires PHP: 5.6 -Stable tag: 2.3.2 +Stable tag: 2.3.3 License: GPLv3 or later License URI: http://www.gnu.org/copyleft/gpl.html @@ -76,6 +76,9 @@ If you are having issues with the plugin, create an issue on [github](https://gi == Changelog == += 2.3.3 = + - Fix params passed to wp_kses() [shadoath](https://github.com/ConnectThink/WP-SCSS/pull/211) + = 2.3.2 = - Add wp_kses() to echos with potential user input [shadoath](https://github.com/ConnectThink/WP-SCSS/pull/208) diff --git a/wp-scss.php b/wp-scss.php index ded0bf4..5792020 100644 --- a/wp-scss.php +++ b/wp-scss.php @@ -3,7 +3,7 @@ * Plugin Name: WP-SCSS * Plugin URI: https://github.com/ConnectThink/WP-SCSS * Description: Compiles scss files live on WordPress. - * Version: 2.3.2 + * Version: 2.3.3 * Author: Connect Think * Author URI: http://connectthink.com * License: GPLv3 @@ -44,7 +44,7 @@ define('WPSCSS_VERSION_KEY', 'wpscss_version'); if (!defined('WPSCSS_VERSION_NUM')) - define('WPSCSS_VERSION_NUM', '2.3.2'); + define('WPSCSS_VERSION_NUM', '2.3.3'); // Add version to options table if ( get_option( WPSCSS_VERSION_KEY ) !== false ) {