Skip to content

Commit bcf44bf

Browse files
authored
Merge pull request #211 from ConnectThink/bugfix-wp_kses
Bugfix wp kses
2 parents cf39c60 + d9e7259 commit bcf44bf

4 files changed

Lines changed: 10 additions & 5 deletions

File tree

options.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ public function input_select_callback( $args ) {
274274
}
275275
$html .= '</select>';
276276

277-
echo wp_kses($html, array( 'select' => array(), 'option' => array()));
277+
echo wp_kses($html, array( 'select' => array('id' => array(), 'name' => array()), 'option' => array('value' => array())));
278278
}
279279

280280
/**
@@ -291,6 +291,6 @@ public function input_checkbox_callback( $args ) {
291291
$html .= '<label for="' . esc_attr( $args['name'] ) . '"></label>';
292292
}
293293

294-
echo wp_kses($html, array('input' => array(), 'label' => array() ));
294+
echo wp_kses($html, array('input' => array('type' => array(), 'name' => array(), 'value' => array(), 'disabled' => array()), 'label' => array('for' => array()) ));
295295
}
296296
}

readme.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ This plugin will only work with .scss format.
107107

108108
## Changelog
109109

110+
- 2.3.3
111+
- Fix params passed to wp_kses() [shadoath](https://github.com/ConnectThink/WP-SCSS/pull/211)
110112
- 2.3.2
111113
- Add wp_kses() to echos with potential user input [shadoath](https://github.com/ConnectThink/WP-SCSS/pull/208)
112114
- 2.3.1

readme.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Plugin URI: https://github.com/ConnectThink/WP-SCSS
55
Requires at least: 3.0.1
66
Tested up to: 5.8
77
Requires PHP: 5.6
8-
Stable tag: 2.3.2
8+
Stable tag: 2.3.3
99
License: GPLv3 or later
1010
License URI: http://www.gnu.org/copyleft/gpl.html
1111

@@ -76,6 +76,9 @@ If you are having issues with the plugin, create an issue on [github](https://gi
7676

7777
== Changelog ==
7878

79+
= 2.3.3 =
80+
- Fix params passed to wp_kses() [shadoath](https://github.com/ConnectThink/WP-SCSS/pull/211)
81+
7982
= 2.3.2 =
8083
- Add wp_kses() to echos with potential user input [shadoath](https://github.com/ConnectThink/WP-SCSS/pull/208)
8184

wp-scss.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: WP-SCSS
44
* Plugin URI: https://github.com/ConnectThink/WP-SCSS
55
* Description: Compiles scss files live on WordPress.
6-
* Version: 2.3.2
6+
* Version: 2.3.3
77
* Author: Connect Think
88
* Author URI: http://connectthink.com
99
* License: GPLv3
@@ -44,7 +44,7 @@
4444
define('WPSCSS_VERSION_KEY', 'wpscss_version');
4545

4646
if (!defined('WPSCSS_VERSION_NUM'))
47-
define('WPSCSS_VERSION_NUM', '2.3.2');
47+
define('WPSCSS_VERSION_NUM', '2.3.3');
4848

4949
// Add version to options table
5050
if ( get_option( WPSCSS_VERSION_KEY ) !== false ) {

0 commit comments

Comments
 (0)