From 5f09d235f05ede54198413c751f6ca3a1d8bcadc Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Sat, 1 Nov 2014 21:59:58 +0000 Subject: [PATCH] In `_wp_json_convert_string()`, when `$use_mb` is `false`, perhaps pass a variable that actually exists to `wp_check_invalid_utf8()`. Introduced in [30055]. See #30224. git-svn-id: https://develop.svn.wordpress.org/trunk@30162 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php index 482e5521c9..19fdbbfd68 100644 --- a/src/wp-includes/functions.php +++ b/src/wp-includes/functions.php @@ -2739,7 +2739,7 @@ function _wp_json_convert_string( $string ) { return mb_convert_encoding( $string, 'UTF-8', 'UTF-8' ); } } else { - return wp_check_invalid_utf8( $data, true ); + return wp_check_invalid_utf8( $string, true ); } }