Skip to content

Commit

Permalink
Merge pull request #211 from ConnectThink/bugfix-wp_kses
Browse files Browse the repository at this point in the history
Bugfix wp kses
  • Loading branch information
shadoath authored Sep 1, 2021
2 parents cf39c60 + d9e7259 commit bcf44bf
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions options.php
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ public function input_select_callback( $args ) {
}
$html .= '</select>';

echo wp_kses($html, array( 'select' => array(), 'option' => array()));
echo wp_kses($html, array( 'select' => array('id' => array(), 'name' => array()), 'option' => array('value' => array())));
}

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

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()) ));
}
}
2 changes: 2 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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)

Expand Down
4 changes: 2 additions & 2 deletions wp-scss.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 ) {
Expand Down

0 comments on commit bcf44bf

Please sign in to comment.