Plugin Directory

Changeset 2890821


Ignore:
Timestamp:
03/31/2023 12:39:38 AM (3 years ago)
Author:
rafacarvalhido
Message:

2.0.2 - 2023-03-30

  • Fix - Fixed inputs in wp-admin because of the escapes.
Location:
racar-clear-cart-for-woocommerce/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • racar-clear-cart-for-woocommerce/trunk/includes/admin/class-rccwoo_Admin_Options.php

    r2887937 r2890821  
    368368       
    369369        public function rccwoo_use_default_css_class_render() {
     370            global $allowed_html;
    370371            $checked = ( isset( $this->options['rccwoo_use_default_css_class'] ) ) ? 1 : 0;
    371372            $html = '<input type="checkbox" id="rccwoo_use_default_css_class" name="rccwoo_settings[rccwoo_use_default_css_class]" value="1"' . checked( 1, $checked, false ) . '/>';
    372             echo wp_kses_post( $html );
     373            echo wp_kses( $html , $allowed_html );
    373374        }
    374375       
     
    382383        public function rccwoo_radiobox_1_render() {
    383384            $html = '';
     385            global $allowed_html;
    384386            if( isset( $this->options["rccwoo_radiobox_1"] ) ){
    385387                $html = __( 'Unset' , 'racar-clear-cart-for-woocommerce' ) . ' <input type="radio" class="rccwoo_radiobox_1" name="rccwoo_settings[rccwoo_radiobox_1]" value="unset"';
     
    401403                $html .= '<div><input type="radio" class="rccwoo_radiobox_1" name="rccwoo_settings[rccwoo_radiobox_1]" value="right"/>' . __( 'Right' , 'racar-clear-cart-for-woocommerce' ) . '</div>';
    402404            }
    403             echo wp_kses_post( $html );
     405            echo wp_kses( $html , $allowed_html );
    404406        }
    405407       
    406408        public function rccwoo_background_render() {
    407409            $val = '';
     410            global $allowed_html;
    408411            if( isset( $this->options["rccwoo_background"] ) ){
    409412                $val = $this->options['rccwoo_background'];
    410413            }
    411414            $html = '<input type="text" id="rccwoo_background" class="rccwoo-colorpicker" name="rccwoo_settings[rccwoo_background]" value="' . $val . '"';
    412             echo wp_kses_post( $html );
     415            echo wp_kses( $html , $allowed_html );
    413416        }
    414417       
    415418        public function rccwoo_background_hover_color_render() {
    416419            $val = '';
     420            global $allowed_html;
    417421            if( isset( $this->options['rccwoo_background_hover_color'] ) ){
    418422                $val = $this->options['rccwoo_background_hover_color'];
    419423            }
    420424            $html = '<input type="text" id="rccwoo_background_hover_color" class="rccwoo-colorpicker" name="rccwoo_settings[rccwoo_background_hover_color]" value="' . $val . '"';
    421             echo wp_kses_post( $html );
     425            echo wp_kses( $html , $allowed_html );
    422426        }
    423427       
    424428        public function rccwoo_text_color_render() {
    425429            $val = '';
     430            global $allowed_html;
    426431            if( isset( $this->options["rccwoo_text_color"] ) ){
    427432                $val = $this->options['rccwoo_text_color'];
    428433            }
    429434            $html = '<input type="text" id="rccwoo_text_color" class="rccwoo-colorpicker" name="rccwoo_settings[rccwoo_text_color]" value="' . $val . '"';
    430             echo wp_kses_post( $html );
     435            echo wp_kses( $html , $allowed_html );
    431436        }
    432437       
    433438        public function rccwoo_hover_text_color_render() {
    434439            $val = '';
     440            global $allowed_html;
    435441            if( isset( $this->options["rccwoo_hover_text_color"] ) ){
    436442                $val = $this->options['rccwoo_hover_text_color'];
    437443            }
    438444            $html = '<input type="text" id="rccwoo_hover_text_color" class="rccwoo-colorpicker" name="rccwoo_settings[rccwoo_hover_text_color]" value="' . $val . '"';
    439             echo wp_kses_post( $html );
     445            echo wp_kses( $html , $allowed_html );
    440446        }
    441447
    442448        public function rccwoo_rate_render() {
     449            global $allowed_html;
    443450            $html = __( 'Do you like this plugin? Please show your love' , 'racar-clear-cart-for-woocommerce' ) . ' <a href="https://wordpress.org/plugins/racar-clear-cart-for-woocommerce/#reviews" target="_blank">' . __('here' , 'racar-clear-cart-for-woocommerce') . '</a>';
    444             echo wp_kses_post( $html );
     451            echo wp_kses( $html , $allowed_html );
    445452        }
    446453
    447454        public function rccwoo_support_render() {
     455            global $allowed_html;
    448456            $html = __( 'Do you need help with this plugin? Please open a ticket' , 'racar-clear-cart-for-woocommerce' ) . ' <a href="https://www.paypal.com/paypalme/RafaCarvalhido" target="_blank">' . __('here' , 'racar-clear-cart-for-woocommerce') . '</a>';
    449             echo wp_kses_post( $html );
     457            echo wp_kses( $html , $allowed_html );
    450458        }
    451459
    452460        public function rccwoo_donate_render() {
     461            global $allowed_html;
    453462            $html = __( 'Do you want to show your love? Please buy me some coffee' , 'racar-clear-cart-for-woocommerce' ) . ' <a href="//wordpress.org/support/plugin/racar-clear-cart-for-woocommerce/" target="_blank">' . __('by clicking here' , 'racar-clear-cart-for-woocommerce') . '</a>';
    454             echo wp_kses_post( $html );
     463            echo wp_kses( $html , $allowed_html );
    455464        }
    456465
  • racar-clear-cart-for-woocommerce/trunk/racar-clear-cart-for-woocommerce.php

    r2887937 r2890821  
    44 * Plugin URI:  https://github.com/rafacarvalhido/racar-clear-cart-woo
    55 * Description: This plugin adds a convenient button to empty the shopping cart. Clear the entire cart with one click.
    6  * Version:     2.0.1
     6 * Version:     2.0.2
    77 * Author:      Rafa Carvalhido
    88 * Author URI:  https://programawordpress.pro.br/blog/contato/rafa-carvalhido/
     
    5656    $rccwoo_basename = plugin_basename(__FILE__);//racar-clear-cart-for-woocommerce/racar-clear-cart-for-woocommerce.php
    5757
    58     $rccwoo_VERSION = '2.0.1';
     58    $rccwoo_VERSION = '2.0.2';
    5959   
    6060    $rccwoo_NOME_STYLESHEET = 'rccwoo-stylesheet';
     
    7777   
    7878   
    79    
     79    $allowed_html = array(
     80        'div'   => array(
     81                    'class' => array(),
     82                    'id'    => array(),
     83                ),
     84        'a'     => array(
     85                    'href'      => array(),
     86                    'title'     => array(),
     87                    'target'    => array(),
     88                    'rel'       => array(),
     89                ),
     90        'i'     => array(
     91                    'class'     => array()
     92                ),
     93        'input'     => array(
     94                    'type'      => array(),
     95                    'id'        => array(),
     96                    'class'     => array(),
     97                    'name'      => array(),
     98                    'value'     => array(),
     99                ),
     100    );
    80101   
    81102   
  • racar-clear-cart-for-woocommerce/trunk/readme.txt

    r2887937 r2890821  
    55Requires at least: 4.9.8
    66Tested up to: 6.1.1
    7 Stable tag: 2.0.1
     7Stable tag: 2.0.2
    88WC tested up to: 7.5.1
    99Requires PHP: 7.0
     
    116116
    117117== Changelog ==
     118= 2.0.2 - 2023-03-30 =
     119* Fix - Fixed inputs in wp-admin because of the escapes.
     120
    118121= 2.0.1 - 2023-03-27 =
    119122* Update - Changed the images to be WordPress.org compliant.
Note: See TracChangeset for help on using the changeset viewer.