Plugin Directory

Changeset 3293797


Ignore:
Timestamp:
05/15/2025 06:34:16 AM (9 months ago)
Author:
luuptek
Message:

add version 1.3.2

Location:
embed-rentle
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • embed-rentle/tags/1.3.2/library/embed-rentle-classes.php

    r2830031 r3293797  
    6161        // Look for align property
    6262        if ( ! empty( $attributes['align'] ) ) {
    63             $array[] = 'align' . $attributes['align'];
     63            $array[] = 'align' . sanitize_html_class( $attributes['align'] );
    6464        }
    6565
    6666        // Look for padding size
    6767        if ( ! empty( $attributes['paddingSize'] ) ) {
    68             $array[] = $attributes['paddingSize'];
     68            $array[] = sanitize_html_class( $attributes['paddingSize'] );
    6969        } else {
    7070            $array[] = 'medium-padding';
     
    7373        // Look for custom block classnames inserted to block
    7474        if ( ! empty( $attributes['className'] ) ) {
    75             $array[] = $attributes['className'];
     75            $array[] = sanitize_html_class( $attributes['className'] );
    7676        }
    7777
     
    110110    private static function change_keys( $atts ) {
    111111        if ( isset( $atts['shop'] ) ) {
    112             $atts['shopId'] = $atts['shop'];
     112            $atts['shopId'] = sanitize_text_field( $atts['shop'] );
    113113            unset( $atts['shop'] );
    114114        }
    115115
    116116        if ( isset( $atts['location'] ) ) {
    117             $atts['locationId'] = $atts['location'];
     117            $atts['locationId'] = sanitize_text_field( $atts['location'] );
    118118            unset( $atts['location'] );
    119119        }
    120120
    121121        if ( isset( $atts['category'] ) ) {
    122             $atts['categoryId'] = $atts['category'];
     122            $atts['categoryId'] = sanitize_text_field( $atts['category'] );
    123123            unset( $atts['category'] );
    124124        }
    125125
    126126        if ( isset( $atts['product'] ) ) {
    127             $atts['productId'] = $atts['product'];
     127            $atts['productId'] = sanitize_text_field( $atts['product'] );
    128128            unset( $atts['product'] );
    129129        }
    130130
    131131        if ( isset( $atts['disableautoscroll'] ) ) {
    132             $atts['disableAutoScroll'] = $atts['disableautoscroll'];
     132            $atts['disableAutoScroll'] = sanitize_text_field( $atts['disableautoscroll'] );
    133133            unset( $atts['disableautoscroll'] );
    134134        }
    135135
    136136        if ( isset( $atts['disableheightanimation'] ) ) {
    137             $atts['disableHeightAnimation'] = $atts['disableheightanimation'];
     137            $atts['disableHeightAnimation'] = sanitize_text_field( $atts['disableheightanimation'] );
    138138            unset( $atts['disableheightanimation'] );
    139139        }
    140140
    141141        if ( isset( $atts['locationsview'] ) ) {
    142             $atts['locationsView'] = $atts['locationsview'];
     142            $atts['locationsView'] = sanitize_text_field( $atts['locationsview'] );
    143143            unset( $atts['locationsview'] );
    144144        }
    145145
    146146        if ( isset( $atts['padding'] ) ) {
    147             $atts['paddingSize'] = $atts['padding'];
     147            $atts['paddingSize'] = sanitize_text_field( $atts['padding'] );
    148148            unset( $atts['padding'] );
    149149        }
    150150
    151151        if ( isset( $atts['class'] ) ) {
    152             $atts['className'] = $atts['class'];
     152            $atts['className'] = sanitize_text_field( $atts['class'] );
    153153            unset( $atts['class'] );
    154154        }
  • embed-rentle/tags/1.3.2/plugin.php

    r3147387 r3293797  
    66 * Author: rentle
    77 * Author URI: https://www.twicecommerce.com/
    8  * Version: 1.3.1
     8 * Version: 1.3.2
    99 * License: GPL2+
    1010 * License URI: https://www.gnu.org/licenses/gpl-2.0.txt
  • embed-rentle/tags/1.3.2/readme.txt

    r3206767 r3293797  
    33Tags: rental, calendar, availability, reservation, booking
    44Requires at least: 5.0
    5 Tested up to: 6.7
     5Tested up to: 6.8
    66Requires PHP: 5.6
    7 Stable tag: 1.3.1
     7Stable tag: 1.3.2
    88License: GPLv2
    99
     
    145145
    146146== Changelog ==
     1471.3.2 Sanitize class names + possible shortcode attributes
    1471481.3.1 Logo changes, small php notice fix
    1481491.3 Rentle ==> Twice Commerce brand changes
  • embed-rentle/trunk/library/embed-rentle-classes.php

    r2830031 r3293797  
    6161        // Look for align property
    6262        if ( ! empty( $attributes['align'] ) ) {
    63             $array[] = 'align' . $attributes['align'];
     63            $array[] = 'align' . sanitize_html_class( $attributes['align'] );
    6464        }
    6565
    6666        // Look for padding size
    6767        if ( ! empty( $attributes['paddingSize'] ) ) {
    68             $array[] = $attributes['paddingSize'];
     68            $array[] = sanitize_html_class( $attributes['paddingSize'] );
    6969        } else {
    7070            $array[] = 'medium-padding';
     
    7373        // Look for custom block classnames inserted to block
    7474        if ( ! empty( $attributes['className'] ) ) {
    75             $array[] = $attributes['className'];
     75            $array[] = sanitize_html_class( $attributes['className'] );
    7676        }
    7777
     
    110110    private static function change_keys( $atts ) {
    111111        if ( isset( $atts['shop'] ) ) {
    112             $atts['shopId'] = $atts['shop'];
     112            $atts['shopId'] = sanitize_text_field( $atts['shop'] );
    113113            unset( $atts['shop'] );
    114114        }
    115115
    116116        if ( isset( $atts['location'] ) ) {
    117             $atts['locationId'] = $atts['location'];
     117            $atts['locationId'] = sanitize_text_field( $atts['location'] );
    118118            unset( $atts['location'] );
    119119        }
    120120
    121121        if ( isset( $atts['category'] ) ) {
    122             $atts['categoryId'] = $atts['category'];
     122            $atts['categoryId'] = sanitize_text_field( $atts['category'] );
    123123            unset( $atts['category'] );
    124124        }
    125125
    126126        if ( isset( $atts['product'] ) ) {
    127             $atts['productId'] = $atts['product'];
     127            $atts['productId'] = sanitize_text_field( $atts['product'] );
    128128            unset( $atts['product'] );
    129129        }
    130130
    131131        if ( isset( $atts['disableautoscroll'] ) ) {
    132             $atts['disableAutoScroll'] = $atts['disableautoscroll'];
     132            $atts['disableAutoScroll'] = sanitize_text_field( $atts['disableautoscroll'] );
    133133            unset( $atts['disableautoscroll'] );
    134134        }
    135135
    136136        if ( isset( $atts['disableheightanimation'] ) ) {
    137             $atts['disableHeightAnimation'] = $atts['disableheightanimation'];
     137            $atts['disableHeightAnimation'] = sanitize_text_field( $atts['disableheightanimation'] );
    138138            unset( $atts['disableheightanimation'] );
    139139        }
    140140
    141141        if ( isset( $atts['locationsview'] ) ) {
    142             $atts['locationsView'] = $atts['locationsview'];
     142            $atts['locationsView'] = sanitize_text_field( $atts['locationsview'] );
    143143            unset( $atts['locationsview'] );
    144144        }
    145145
    146146        if ( isset( $atts['padding'] ) ) {
    147             $atts['paddingSize'] = $atts['padding'];
     147            $atts['paddingSize'] = sanitize_text_field( $atts['padding'] );
    148148            unset( $atts['padding'] );
    149149        }
    150150
    151151        if ( isset( $atts['class'] ) ) {
    152             $atts['className'] = $atts['class'];
     152            $atts['className'] = sanitize_text_field( $atts['class'] );
    153153            unset( $atts['class'] );
    154154        }
  • embed-rentle/trunk/plugin.php

    r3147387 r3293797  
    66 * Author: rentle
    77 * Author URI: https://www.twicecommerce.com/
    8  * Version: 1.3.1
     8 * Version: 1.3.2
    99 * License: GPL2+
    1010 * License URI: https://www.gnu.org/licenses/gpl-2.0.txt
  • embed-rentle/trunk/readme.txt

    r3206767 r3293797  
    33Tags: rental, calendar, availability, reservation, booking
    44Requires at least: 5.0
    5 Tested up to: 6.7
     5Tested up to: 6.8
    66Requires PHP: 5.6
    7 Stable tag: 1.3.1
     7Stable tag: 1.3.2
    88License: GPLv2
    99
     
    145145
    146146== Changelog ==
     1471.3.2 Sanitize class names + possible shortcode attributes
    1471481.3.1 Logo changes, small php notice fix
    1481491.3 Rentle ==> Twice Commerce brand changes
Note: See TracChangeset for help on using the changeset viewer.