Changeset 2303479
- Timestamp:
- 05/12/2020 01:05:36 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libsyn-podcasting/trunk/admin/lib/Libsyn/Service/Sanitize.php
r2302786 r2303479 288 288 */ 289 289 public function array( $array ) { 290 foreach ( $array as $key => &$value ) { 291 if ( is_array( $value ) ) { 292 $value = $this->array($value); 293 } 294 else { 295 $value = sanitize_text_field( $value ); 296 } 297 } 290 if ( is_array($array) ) { 291 foreach ( $array as $key => &$value ) { 292 if ( is_array( $value ) ) { 293 $value = $this->array($value); 294 } 295 else { 296 $value = sanitize_text_field( $value ); 297 } 298 } 299 } 298 300 299 301 return $array;
Note: See TracChangeset
for help on using the changeset viewer.