| @@ 299-303 (lines=5) @@ | ||
| 296 | * @throws EE_Error |
|
| 297 | */ |
|
| 298 | public function set_details( $details = '' ) { |
|
| 299 | if ( is_array( $details ) ) { |
|
| 300 | array_walk_recursive( $details, array( $this, '_strip_all_tags_within_array' ) ); |
|
| 301 | } else { |
|
| 302 | $details = wp_strip_all_tags( $details ); |
|
| 303 | } |
|
| 304 | $this->set( 'PAY_details', $details ); |
|
| 305 | } |
|
| 306 | ||
| @@ 822-826 (lines=5) @@ | ||
| 819 | if ( is_object( $item ) ) { |
|
| 820 | $item = (array)$item; |
|
| 821 | } |
|
| 822 | if ( is_array( $item ) ) { |
|
| 823 | array_walk_recursive( $item, array( $this, '_strip_all_tags_within_array' ) ); |
|
| 824 | } else { |
|
| 825 | $item = wp_strip_all_tags( $item ); |
|
| 826 | } |
|
| 827 | } |
|
| 828 | ||
| 829 | ||