Plugin Directory

Changeset 3074695


Ignore:
Timestamp:
04/21/2024 06:24:40 PM (21 months ago)
Author:
CalculatorsCanada.ca
Message:

0.2021.2

  • Fixed low level vulnerability
  • Deprecated PHP function fix (create_function() deprecated)
Location:
cc-ontario-tax-calculator/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cc-ontario-tax-calculator/trunk/cc-income-tax-on-layout.php

    r2633527 r3074695  
    7878<style type="text/css">
    7979.CCT-Widget-<?php echo $id; ?>, .CCT-WidgetTitle-<?php echo $id; ?> a, .CCT-WidgetTitle-<?php echo $id; ?> a:visited, .CCT-WidgetSignature-<?php echo $id; ?> a, .CCT-WidgetSignature-<?php echo $id; ?> a:visited, .CCT-WidgetLine-<?php echo $id; ?> {
    80     <?php echo (isset( $border_color) ? "border-color:" . $border_color . ";" : ""); ?>
    81     <?php echo (isset( $bg_color) ? "background-color:" . $bg_color . ";": ""); ?>
    82     <?php echo (isset( $text_color) ? "color:" . $text_color . " !important;": ""); ?>
     80    <?php echo (isset( $border_color) ? "border-color:" . esc_attr($border_color) . ";" : ""); ?>
     81    <?php echo (isset( $bg_color) ? "background-color:" . esc_attr($bg_color) . ";": ""); ?>
     82    <?php echo (isset( $text_color) ? "color:" . esc_attr($text_color) . " !important;": ""); ?>
    8383}
    8484
    8585.CCT-Widget-<?php echo $id; ?> input[type=text] {
    86     <?php echo (isset( $border_color) ? "border-color:" . $border_color . ";": ""); ?>
    87     <?php echo (isset( $text_color) ? "color:" . $text_color . ";": ""); ?>
    88     <?php echo (isset( $input_bg_color) ? "background-color:" . $input_bg_color . ";": ""); ?>
     86    <?php echo (isset( $border_color) ? "border-color:" . esc_attr($border_color) . ";": ""); ?>
     87    <?php echo (isset( $text_color) ? "color:" . esc_attr($text_color) . ";": ""); ?>
     88    <?php echo (isset( $input_bg_color) ? "background-color:" . esc_attr($input_bg_color) . ";": ""); ?>
    8989}
    9090</style>
  • cc-ontario-tax-calculator/trunk/cc-income-tax-on.php

    r2633518 r3074695  
    55Plugin URI: https://calculatorscanada.ca/income-tax-calculator-wordpress-widget/
    66Description: Ontario Income Tax Calculator 2021
    7 Version: 0.2021.1
     7Version: 0.2021.2
    88Author: Calculators Canada
    99Author URI: https://calculatorscanada.ca/
    1010License: GPL2
    1111
    12 Copyright 2013-2021 CalculatorsCanada.CA ([email protected])
     12Copyright 2013-2024 CalculatorsCanada.CA ([email protected])
    1313This program is free software; you can redistribute it and/or modify
    1414it under the terms of the GNU General Public License as published by
     
    125125
    126126// register widget
    127 add_action('widgets_init', create_function('', 'return register_widget("cc_income_tax_on");'));
    128 
     127// add_action('widgets_init', create_function('', 'return register_widget("cc_income_tax_on");'));
     128function cc_income_tax_on_init ()
     129{
     130    return register_widget('cc_income_tax_on');
     131}
     132add_action ('widgets_init', 'cc_income_tax_on_init');
    129133
    130134// load widget style and javascript files
    131135function cc_income_tax_on_scripts() {
    132     wp_register_style( 'cc-income-tax-on', plugins_url('/cc-income-tax-on.css',__FILE__), NULL, '0.2021.1');
     136    wp_register_style( 'cc-income-tax-on', plugins_url('/cc-income-tax-on.css',__FILE__), NULL, '0.2021.2');
    133137    wp_enqueue_style( 'cc-income-tax-on' );
    134     wp_enqueue_script( 'cc-income-tax-on', plugins_url('/cc-income-tax-on.js',__FILE__), array('jquery'), '0.2021.1', true );
     138    wp_enqueue_script( 'cc-income-tax-on', plugins_url('/cc-income-tax-on.js',__FILE__), array('jquery'), '0.2021.2', true );
    135139}
    136140
     
    158162    );
    159163   if ( $atts['dev_credit'] && !empty($atts['title']))
    160          $atts['title'] = '<a href="https://calculatorscanada.ca/ontario-income-tax-calculator/" target="_blank">' . $atts['title'] . '</a>';       
     164         $atts['title'] = '<a href="https://calculatorscanada.ca/ontario-income-tax-calculator/" target="_blank">' . esc_attr($atts['title']) . '</a>';     
    161165    ob_start();
    162166    load_cc_income_tax_on_calc('cc_income_tax_on_shortcode', $atts['title'],  $atts['dev_credit'], $atts['bg_color'], $atts['border_color'], $atts['text_color']);
  • cc-ontario-tax-calculator/trunk/readme.txt

    r2943713 r3074695  
    44Tags: Ontario, Canada, income tax calculator, calculator, sidebar, widget, plugin, financial, taxes, shortcode
    55Requires at least: 3.0
    6 Tested up to: 6.2.2
    7 Stable tag: 0.2021.1
     6Tested up to: 6.5.2
     7Stable tag: 0.2021.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7070== Changelog ==
    7171
     72= 0.2021.2 =
     73* Fixed low level vulnerability
     74* Deprecated PHP function fix (create_function() deprecated)
     75
    7276= 0.2021.1 =
    7377* Income tax calculator updated for fiscal year 2021
     
    99103
    100104== Upgrade Notice ==
    101 * Initial beta release
     105
     106= 0.2021.2 =
     107* Fixed low level vulnerability. Immediate update advised. 
     108* Deprecated PHP function fix (create_function() deprecated)
Note: See TracChangeset for help on using the changeset viewer.