Plugin Directory

Changeset 3469270


Ignore:
Timestamp:
02/25/2026 09:51:39 AM (5 weeks ago)
Author:
lwsdevelopers
Message:

Reward description accept html. Legacy cart page text inserts accept html.

Location:
woorewards/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • woorewards/trunk/assets/lws-adminpanel/include/pages/field.php

    r3458815 r3469270  
    171171            return array_map([$this, 'sanitize_field'], $value);
    172172        } else {
    173             return \sanitize_textarea_field($value);
     173            return $value;
    174174        }
    175175    }
  • woorewards/trunk/assets/lws-adminpanel/include/tools/argparser.php

    r3463447 r3469270  
    344344                        else if( $u == 'T' )
    345345                            $value = \sanitize_text_field($value);
     346                        else if( $u == 'H' )
     347                            $value = \wp_kses_post($value);
    346348                        else
    347349                            $value = trim($value);
  • woorewards/trunk/assets/lws-adminpanel/lws-adminpanel.php

    r3463447 r3469270  
    66 * Author: Long Watch Studio
    77 * Author URI: https://longwatchstudio.com
    8  * Version: 5.7.1
     8 * Version: 5.7.2
    99 * Text Domain: lws-adminpanel
    1010 *
     
    5656
    5757add_filter('lws_adminpanel_versions', function($versions){
    58     $versions['5.7.1'] = __FILE__;
     58    $versions['5.7.2'] = __FILE__;
    5959    return $versions;
    6060});
  • woorewards/trunk/include/abstracts/unlockable.php

    r3463447 r3469270  
    186186                $prefix . 'cost'          => '0',
    187187                $prefix . 'title'         => 't',
    188                 $prefix . 'description'   => 't',
     188                $prefix . 'description'   => 'h',
    189189                $prefix . 'date_start'    => 's',
    190190                $prefix . 'date_end'      => 's',
  • woorewards/trunk/include/pointdiscount.php

    r3463447 r3469270  
    212212            return false;
    213213
    214         $points = \min($points, $pool->getPoints($userId));
     214        $points = \min($points, \apply_filters('lws_woorewards_pointdiscount_available_points', $pool->getPoints($userId), $pool, $userId));
    215215        if ($points <= 0)
    216216            return false;
     
    375375        {
    376376            $stack['needs'] = \array_sum(\array_column($stack['discounts'], 'points'));
    377             $stack['max'] = $stack['ref']->getPoints($userId);
     377            $stack['max'] = \apply_filters('lws_woorewards_pointdiscount_available_points', $stack['ref']->getPoints($userId), $stack['ref'], $userId);
    378378        }
    379379
     
    628628
    629629        $stackId = $pool->getStackId();
    630         $max = $pool->getPoints($userId);
     630        $max = \apply_filters('lws_woorewards_pointdiscount_available_points', $pool->getPoints($userId), $pool, $userId);
    631631
    632632        $points = \sanitize_text_field(isset($_REQUEST['amount']) ? \wp_unslash($_REQUEST['amount']) : 0);
  • woorewards/trunk/readme.txt

    r3463447 r3469270  
    55Tested up to: 6.9
    66Requires PHP: 7.3.0
    7 Stable tag: 5.7.1
     7Stable tag: 5.7.2
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    110110== Changelog ==
    111111
     112= 5.7.2 =
     113* Feature - Reward description accept html
     114* Fix - Legacy cart page text inserts accept html
     115
    112116= 5.7.1 =
    113117* Tag - WooCommerce 10.5
  • woorewards/trunk/woorewards.php

    r3463447 r3469270  
    77 * Author: Long Watch Studio
    88 * Author URI: https://longwatchstudio.com
    9  * Version: 5.7.1
     9 * Version: 5.7.2
    1010 * License: GPLv2 or later
    1111 * Text Domain: woorewards-lite
     
    110110    private function defineConstants()
    111111    {
    112         define('LWS_WOOREWARDS_VERSION', '5.7.1');
     112        define('LWS_WOOREWARDS_VERSION', '5.7.2');
    113113        define('LWS_WOOREWARDS_FILE', __FILE__);
    114114        define('LWS_WOOREWARDS_DOMAIN', 'woorewards-lite');
     
    148148    public function addPluginVersion($url)
    149149    {
    150         return '5.7.1';
     150        return '5.7.2';
    151151    }
    152152
Note: See TracChangeset for help on using the changeset viewer.