Changeset 3178811
- Timestamp:
- 10/30/2024 12:34:52 PM (17 months ago)
- Location:
- the-pack-addon/trunk/includes
- Files:
-
- 3 edited
-
helper-functions.php (modified) (1 diff)
-
widgets/element/accordion/view.php (modified) (1 diff)
-
widgets/woocommerce/woo-title-description/view.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
the-pack-addon/trunk/includes/helper-functions.php
r3175974 r3178811 13 13 function tp_only_alpha_num($string){ 14 14 if (!preg_match("/[^[:alnum:]_\/-]/",$string)) { 15 return $string; 16 } 17 } 18 19 function tp_allow_html_tag($string){ 20 $allowed = ['h1','h2','h3','h4','h5','h6','p','span']; 21 if (in_array($string, $allowed)){ 15 22 return $string; 16 23 } -
the-pack-addon/trunk/includes/widgets/element/accordion/view.php
r3156566 r3178811 38 38 </ul> 39 39 </div> 40 -
the-pack-addon/trunk/includes/widgets/woocommerce/woo-title-description/view.php
r3156566 r3178811 15 15 break; 16 16 } 17 $tag = tp_ only_alpha_num($settings['tag']);17 $tag = tp_allow_html_tag($settings['tag']); 18 18 echo sprintf( "<%s class='product_title_desc'>%s</%s>", $tag, esc_attr($type), $tag ); 19 ?> 19 ?>
Note: See TracChangeset
for help on using the changeset viewer.