Comments: look for wp_error when checking whether $wpdb->get_col_length() has failed.

See #10377.
Built from https://develop.svn.wordpress.org/trunk@36542


git-svn-id: http://core.svn.wordpress.org/trunk@36509 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2016-02-16 23:50:27 +00:00
parent 9e73dea03a
commit 0ff58701e0
2 changed files with 2 additions and 2 deletions

View File

@ -972,7 +972,7 @@ function wp_get_comment_fields_max_lengths() {
$max_length = 0;
// No point if we can't get the DB column lengths
if ( $col_length === false ) {
if ( is_wp_error( $col_length ) ) {
break;
}

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.5-alpha-36541';
$wp_version = '4.5-alpha-36542';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.