Changeset 2492534
- Timestamp:
- 03/10/2021 06:45:30 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
custom-global-variables/trunk/custom-global-variables.php
r2492226 r2492534 95 95 foreach ( $_POST['vars'] as $var ) { 96 96 $var['name'] = sanitize_textarea_field($var['name']); 97 $var['val'] = wp_kses_post($var['val']); 98 97 99 98 100 if ( ! empty( $var['name'] ) && !empty( $var['val'] ) ) { … … 155 157 <?php 156 158 $key = esc_html($key); 159 $val = wp_kses_post($val); 157 160 ?> 158 161 … … 220 223 $param0 = sanitize_text_field($params[0]); 221 224 if ( ! empty( $GLOBALS['cgv'][ $param0 ]) ) { 222 return $GLOBALS['cgv'][ $param0 ];225 return wp_kses_post($GLOBALS['cgv'][ $param0 ]); 223 226 } 224 227
Note: See TracChangeset
for help on using the changeset viewer.