Changeset 3293797
- Timestamp:
- 05/15/2025 06:34:16 AM (9 months ago)
- Location:
- embed-rentle
- Files:
-
- 6 edited
- 1 copied
-
tags/1.3.2 (copied) (copied from embed-rentle/trunk)
-
tags/1.3.2/library/embed-rentle-classes.php (modified) (3 diffs)
-
tags/1.3.2/plugin.php (modified) (1 diff)
-
tags/1.3.2/readme.txt (modified) (2 diffs)
-
trunk/library/embed-rentle-classes.php (modified) (3 diffs)
-
trunk/plugin.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
embed-rentle/tags/1.3.2/library/embed-rentle-classes.php
r2830031 r3293797 61 61 // Look for align property 62 62 if ( ! empty( $attributes['align'] ) ) { 63 $array[] = 'align' . $attributes['align'];63 $array[] = 'align' . sanitize_html_class( $attributes['align'] ); 64 64 } 65 65 66 66 // Look for padding size 67 67 if ( ! empty( $attributes['paddingSize'] ) ) { 68 $array[] = $attributes['paddingSize'];68 $array[] = sanitize_html_class( $attributes['paddingSize'] ); 69 69 } else { 70 70 $array[] = 'medium-padding'; … … 73 73 // Look for custom block classnames inserted to block 74 74 if ( ! empty( $attributes['className'] ) ) { 75 $array[] = $attributes['className'];75 $array[] = sanitize_html_class( $attributes['className'] ); 76 76 } 77 77 … … 110 110 private static function change_keys( $atts ) { 111 111 if ( isset( $atts['shop'] ) ) { 112 $atts['shopId'] = $atts['shop'];112 $atts['shopId'] = sanitize_text_field( $atts['shop'] ); 113 113 unset( $atts['shop'] ); 114 114 } 115 115 116 116 if ( isset( $atts['location'] ) ) { 117 $atts['locationId'] = $atts['location'];117 $atts['locationId'] = sanitize_text_field( $atts['location'] ); 118 118 unset( $atts['location'] ); 119 119 } 120 120 121 121 if ( isset( $atts['category'] ) ) { 122 $atts['categoryId'] = $atts['category'];122 $atts['categoryId'] = sanitize_text_field( $atts['category'] ); 123 123 unset( $atts['category'] ); 124 124 } 125 125 126 126 if ( isset( $atts['product'] ) ) { 127 $atts['productId'] = $atts['product'];127 $atts['productId'] = sanitize_text_field( $atts['product'] ); 128 128 unset( $atts['product'] ); 129 129 } 130 130 131 131 if ( isset( $atts['disableautoscroll'] ) ) { 132 $atts['disableAutoScroll'] = $atts['disableautoscroll'];132 $atts['disableAutoScroll'] = sanitize_text_field( $atts['disableautoscroll'] ); 133 133 unset( $atts['disableautoscroll'] ); 134 134 } 135 135 136 136 if ( isset( $atts['disableheightanimation'] ) ) { 137 $atts['disableHeightAnimation'] = $atts['disableheightanimation'];137 $atts['disableHeightAnimation'] = sanitize_text_field( $atts['disableheightanimation'] ); 138 138 unset( $atts['disableheightanimation'] ); 139 139 } 140 140 141 141 if ( isset( $atts['locationsview'] ) ) { 142 $atts['locationsView'] = $atts['locationsview'];142 $atts['locationsView'] = sanitize_text_field( $atts['locationsview'] ); 143 143 unset( $atts['locationsview'] ); 144 144 } 145 145 146 146 if ( isset( $atts['padding'] ) ) { 147 $atts['paddingSize'] = $atts['padding'];147 $atts['paddingSize'] = sanitize_text_field( $atts['padding'] ); 148 148 unset( $atts['padding'] ); 149 149 } 150 150 151 151 if ( isset( $atts['class'] ) ) { 152 $atts['className'] = $atts['class'];152 $atts['className'] = sanitize_text_field( $atts['class'] ); 153 153 unset( $atts['class'] ); 154 154 } -
embed-rentle/tags/1.3.2/plugin.php
r3147387 r3293797 6 6 * Author: rentle 7 7 * Author URI: https://www.twicecommerce.com/ 8 * Version: 1.3. 18 * Version: 1.3.2 9 9 * License: GPL2+ 10 10 * License URI: https://www.gnu.org/licenses/gpl-2.0.txt -
embed-rentle/tags/1.3.2/readme.txt
r3206767 r3293797 3 3 Tags: rental, calendar, availability, reservation, booking 4 4 Requires at least: 5.0 5 Tested up to: 6. 75 Tested up to: 6.8 6 6 Requires PHP: 5.6 7 Stable tag: 1.3. 17 Stable tag: 1.3.2 8 8 License: GPLv2 9 9 … … 145 145 146 146 == Changelog == 147 1.3.2 Sanitize class names + possible shortcode attributes 147 148 1.3.1 Logo changes, small php notice fix 148 149 1.3 Rentle ==> Twice Commerce brand changes -
embed-rentle/trunk/library/embed-rentle-classes.php
r2830031 r3293797 61 61 // Look for align property 62 62 if ( ! empty( $attributes['align'] ) ) { 63 $array[] = 'align' . $attributes['align'];63 $array[] = 'align' . sanitize_html_class( $attributes['align'] ); 64 64 } 65 65 66 66 // Look for padding size 67 67 if ( ! empty( $attributes['paddingSize'] ) ) { 68 $array[] = $attributes['paddingSize'];68 $array[] = sanitize_html_class( $attributes['paddingSize'] ); 69 69 } else { 70 70 $array[] = 'medium-padding'; … … 73 73 // Look for custom block classnames inserted to block 74 74 if ( ! empty( $attributes['className'] ) ) { 75 $array[] = $attributes['className'];75 $array[] = sanitize_html_class( $attributes['className'] ); 76 76 } 77 77 … … 110 110 private static function change_keys( $atts ) { 111 111 if ( isset( $atts['shop'] ) ) { 112 $atts['shopId'] = $atts['shop'];112 $atts['shopId'] = sanitize_text_field( $atts['shop'] ); 113 113 unset( $atts['shop'] ); 114 114 } 115 115 116 116 if ( isset( $atts['location'] ) ) { 117 $atts['locationId'] = $atts['location'];117 $atts['locationId'] = sanitize_text_field( $atts['location'] ); 118 118 unset( $atts['location'] ); 119 119 } 120 120 121 121 if ( isset( $atts['category'] ) ) { 122 $atts['categoryId'] = $atts['category'];122 $atts['categoryId'] = sanitize_text_field( $atts['category'] ); 123 123 unset( $atts['category'] ); 124 124 } 125 125 126 126 if ( isset( $atts['product'] ) ) { 127 $atts['productId'] = $atts['product'];127 $atts['productId'] = sanitize_text_field( $atts['product'] ); 128 128 unset( $atts['product'] ); 129 129 } 130 130 131 131 if ( isset( $atts['disableautoscroll'] ) ) { 132 $atts['disableAutoScroll'] = $atts['disableautoscroll'];132 $atts['disableAutoScroll'] = sanitize_text_field( $atts['disableautoscroll'] ); 133 133 unset( $atts['disableautoscroll'] ); 134 134 } 135 135 136 136 if ( isset( $atts['disableheightanimation'] ) ) { 137 $atts['disableHeightAnimation'] = $atts['disableheightanimation'];137 $atts['disableHeightAnimation'] = sanitize_text_field( $atts['disableheightanimation'] ); 138 138 unset( $atts['disableheightanimation'] ); 139 139 } 140 140 141 141 if ( isset( $atts['locationsview'] ) ) { 142 $atts['locationsView'] = $atts['locationsview'];142 $atts['locationsView'] = sanitize_text_field( $atts['locationsview'] ); 143 143 unset( $atts['locationsview'] ); 144 144 } 145 145 146 146 if ( isset( $atts['padding'] ) ) { 147 $atts['paddingSize'] = $atts['padding'];147 $atts['paddingSize'] = sanitize_text_field( $atts['padding'] ); 148 148 unset( $atts['padding'] ); 149 149 } 150 150 151 151 if ( isset( $atts['class'] ) ) { 152 $atts['className'] = $atts['class'];152 $atts['className'] = sanitize_text_field( $atts['class'] ); 153 153 unset( $atts['class'] ); 154 154 } -
embed-rentle/trunk/plugin.php
r3147387 r3293797 6 6 * Author: rentle 7 7 * Author URI: https://www.twicecommerce.com/ 8 * Version: 1.3. 18 * Version: 1.3.2 9 9 * License: GPL2+ 10 10 * License URI: https://www.gnu.org/licenses/gpl-2.0.txt -
embed-rentle/trunk/readme.txt
r3206767 r3293797 3 3 Tags: rental, calendar, availability, reservation, booking 4 4 Requires at least: 5.0 5 Tested up to: 6. 75 Tested up to: 6.8 6 6 Requires PHP: 5.6 7 Stable tag: 1.3. 17 Stable tag: 1.3.2 8 8 License: GPLv2 9 9 … … 145 145 146 146 == Changelog == 147 1.3.2 Sanitize class names + possible shortcode attributes 147 148 1.3.1 Logo changes, small php notice fix 148 149 1.3 Rentle ==> Twice Commerce brand changes
Note: See TracChangeset
for help on using the changeset viewer.