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

See #10377.

git-svn-id: https://develop.svn.wordpress.org/trunk@36542 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2016-02-16 23:49:43 +00:00
parent a440256da0
commit d3a848c773

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;
}