diff --git src/wp-includes/formatting.php src/wp-includes/formatting.php
index 41c6afb..b55d720 100644
|
|
|
function sanitize_option( $option, $value ) { |
| 4988 | 4988 | * @return mixed The value with the callback applied to all non-arrays and non-objects inside it. |
| 4989 | 4989 | */ |
| 4990 | 4990 | function map_deep( $value, $callback ) { |
| | 4991 | if ( is_object( $value ) && $value instanceof __PHP_Incomplete_Class ) { |
| | 4992 | return $value; |
| | 4993 | } |
| | 4994 | |
| 4991 | 4995 | if ( is_array( $value ) ) { |
| 4992 | 4996 | foreach ( $value as $index => $item ) { |
| 4993 | 4997 | $value[ $index ] = map_deep( $item, $callback ); |