Ticket #18026: 18026.diff
File 18026.diff, 738 bytes (added by , 13 years ago) |
---|
-
wp-includes/formatting.php
1227 1227 * 1228 1228 * @since 2.0.0 1229 1229 * 1230 * @param array|string $value The array or stringto be stripped.1231 * @return array|string Stripped array (or string in the callback).1230 * @param mixed $value The value to be stripped. 1231 * @return mixed Stripped value. 1232 1232 */ 1233 1233 function stripslashes_deep($value) { 1234 1234 if ( is_array($value) ) { … … 1238 1238 foreach ($vars as $key=>$data) { 1239 1239 $value->{$key} = stripslashes_deep( $data ); 1240 1240 } 1241 } else {1241 } elseif ( is_string($value) ) { 1242 1242 $value = stripslashes($value); 1243 1243 } 1244 1244