From 85d327d4bd24cf538a3acbc3fe7fd2581916a538 Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Mon, 27 Apr 2015 14:42:27 +0000 Subject: [PATCH] In [32299], we should be using `mb_strlen()` for our string size checks. Built from https://develop.svn.wordpress.org/trunk@32306 git-svn-id: http://core.svn.wordpress.org/trunk@32277 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/version.php | 2 +- wp-includes/wp-db.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/version.php b/wp-includes/version.php index ff33866c9f..92ebe0c9eb 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.3-alpha-32299'; +$wp_version = '4.3-alpha-32306'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. diff --git a/wp-includes/wp-db.php b/wp-includes/wp-db.php index c49396dc65..0bd7a1882b 100644 --- a/wp-includes/wp-db.php +++ b/wp-includes/wp-db.php @@ -2064,7 +2064,7 @@ class wpdb { } } - if ( false !== $value['length'] && strlen( $value['value'] ) > $value['length'] ) { + if ( false !== $value['length'] && mb_strlen( $value['value'] ) > $value['length'] ) { return false; }