From d3a848c7739cfcf73a7574b6c1b50d5789fd0e7d Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Tue, 16 Feb 2016 23:49:43 +0000 Subject: [PATCH] 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 --- src/wp-includes/comment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/comment.php b/src/wp-includes/comment.php index e87708a34e..6d8f6e8e76 100644 --- a/src/wp-includes/comment.php +++ b/src/wp-includes/comment.php @@ -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; }