From 029c274b86486f515f0c3e789b31a9f938ff25ac Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Fri, 21 Aug 2015 18:41:25 +0000 Subject: [PATCH] In `wpdb::get_col_length()`, `break`s are not necessary when a `case` returns See #33491. Built from https://develop.svn.wordpress.org/trunk@33701 git-svn-id: http://core.svn.wordpress.org/trunk@33668 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/version.php | 2 +- wp-includes/wp-db.php | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/wp-includes/version.php b/wp-includes/version.php index 6f0c56a77c..b8844651b2 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-33700'; +$wp_version = '4.4-alpha-33701'; /** * 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 9a07be6bb2..d33502c7ba 100644 --- a/wp-includes/wp-db.php +++ b/wp-includes/wp-db.php @@ -2482,42 +2482,42 @@ class wpdb { 'type' => 'char', 'length' => (int) $length, ); - break; + case 'binary': case 'varbinary': return array( 'type' => 'byte', 'length' => (int) $length, ); - break; + case 'tinyblob': case 'tinytext': return array( 'type' => 'byte', 'length' => 255, // 2^8 - 1 ); - break; + case 'blob': case 'text': return array( 'type' => 'byte', 'length' => 65535, // 2^16 - 1 ); - break; + case 'mediumblob': case 'mediumtext': return array( 'type' => 'byte', 'length' => 16777215, // 2^24 - 1 ); - break; + case 'longblob': case 'longtext': return array( 'type' => 'byte', 'length' => 4294967295, // 2^32 - 1 ); - break; + default: return false; }